Expand description
Syntax definitions and parser for µcad source code.
This module includes the components to parse µcad source code into a stream of tokens or abstract syntax tree.
- Transform source code into a stream of tokens with [
lex] - Create an abstract syntax tree from the list of tokens with
parse
Modules§
- ast
- Abstract syntax tree for µcad files
- parsers
- Chumsky parser functions for µcad syntax elements
- tokens
- Source tokens for µcad files
Structs§
- Parse
Error - An error from building the abstract syntax tree
- Parse
Errors - Parse error collection.
Enums§
- Parse
Context - Context for parsing.
Traits§
- Parse
- Parse trait.
Functions§
- parse
- API to parse directly from a string