Crate fe_parser[][src]

Modules

ast
grammar
lexer
node

Structs

Label
ParseFailed
Parser

Parser maintains the parsing state, such as the token stream, indent stack, paren stack, diagnostics, etc. Syntax parsing logic is in the crate::grammar module.

Token

Enums

TokenKind

Functions

parse_code_chunk

Apply the given parsing function to the code string, returning the result. If the parsing fails, the parser’s diagnostics will be printed. This function is provided for easy testing of later compiler stages.

parse_file

Parse a Module from the file content string.

Type Definitions

ParseResult