Skip to main content

Crate microcad_syntax

Crate microcad_syntax 

Source
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

Re-exports§

pub use tokens::lex;

Modules§

ast
Abstract syntax tree for µcad files
tokens
Source tokens for µcad files

Structs§

ParseError
An error from building the abstract syntax tree

Functions§

parse
Build an abstract syntax tree from a list of tokens

Type Aliases§

Span
Span for tokens or AST nodes, a range of byte offsets from the start of the source