Skip to main content

Crate leo_parser

Crate leo_parser 

Source
Expand description

The Leo parser.

This crate provides parsing functionality for Leo source code, converting it into the Leo AST. Uses leo-parser-rowan for IDE-grade error recovery and lossless syntax trees.

Functionsยง

parse_expression
Parses a single expression from source code.
parse_library
Parses a complete library with its submodules into a Library AST.
parse_module
Parses a module (non-main source file) into a Module AST.
parse_program
Parses a complete program with its modules into a Program AST.
parse_statement
Parses a single statement from source code.