Crate leo_parser

source ·
Expand description

The parser to convert Leo code text into an [AST] type.

This module contains the parse_ast() method which calls the underlying parse() method to create a new program ast.

§leo-parser

Crates.io Authors License

Re-exports§

Modules§

  • The parser to convert Leo code text into a Program AST type.
  • tokenizer 🔒
    The tokenizer to convert Leo code text into tokens.

Constants§

  • Represents all valid Leo keyword tokens. This also includes the boolean literals true and false, unlike the ABNF grammar, which classifies them as literals and not keywords. But for the purposes of our lexer implementation, it is fine to include the boolean literals in this list.

Functions§

  • Creates a new AST from a given file path and source code text.