Module parser

Source
Expand description

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

This module contains the parse() function which calls the underlying tokenize() method to create a new program AST.

Modulesยง

context ๐Ÿ”’
expression ๐Ÿ”’
file ๐Ÿ”’
statement ๐Ÿ”’
type_ ๐Ÿ”’

Functionsยง

compute_module_key ๐Ÿ”’
Computes a module key from a FileName, optionally relative to a root directory.
parse
Parses the main source file and any associated modules into a Program AST.
parse_expression
parse_module
parse_statement