Module leo_parser::parser[][src]

Expand description

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

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

Modules

expression
file
statement
type_

Structs

ParserContext

Stores a program in tokenized format plus additional context. May be converted into a Program AST by parsing all tokens.

Functions

parse

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

Type Definitions

SyntaxResult