Protean-Labs / mesh

The Mesh Engine that implements the Mesh Language, a computational language for web3.
Apache License 2.0
1 stars 0 forks source link

Add location information to AST nodes #63

Closed cvauclair closed 3 years ago

cvauclair commented 3 years ago

General: -Add new module Syntax_util which contains all syntax related utility functions

Syntax: -Move utility functions to new Syntax_util module -Change type expr to expr_desc -Add new type expr which holds location information about AST expression node -Change type pattern to pattern_desc -Add new type pattern which holds location information about AST pattern node

Parser: -Add code to include Lexer location information with AST nodes (closes #50 )

Infer: -Formatting -Update tree walk with new AST format

Eval: -Update tree walk with new AST format

Test: -Update parsing tests with new AST format