2 stable releases

1.0.1 Mar 19, 2024
1.0.0 Mar 5, 2024

#764 in Programming languages

Download history 73/week @ 2024-02-28 61/week @ 2024-03-06 100/week @ 2024-03-13 107/week @ 2024-03-20 12/week @ 2024-03-27 20/week @ 2024-04-03

67 downloads per month
Used in 2 crates

MIT/Apache

115KB
2K SLoC

Parser Module

The parser module contains the implementation of the SAP language parser. The parser is responsible for taking a sequence of tokens and converting them into an abstract syntax tree (AST). The AST is then used by the interpreter to execute the program.

The parser is implemented as a recursive descent parser, which is a top-down parser that starts from the root of the syntax tree and works its way down to the leaves.

It is also responsible for reporting syntax errors in the input program. When a syntax error is encountered, the parser returns an error containing a message describing the error.

Dependencies

~0.7–1.5MB
~34K SLoC