Skip to main content

Module parser

Module parser 

Source
Expand description

Parser for kaish source code.

Transforms a token stream from the lexer into an Abstract Syntax Tree. Uses chumsky for parser combinators with good error recovery.

Structs§

ParseError
Parse error with location and context.

Functions§

parse
Parse kaish source code into a Program AST.
parse_statement
Parse a single statement (useful for REPL).

Type Aliases§

Span
Span type used throughout the parser.