Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 1.87 KB

README.md

File metadata and controls

40 lines (34 loc) · 1.87 KB

Parsers

An exploration of parsing techniques in r7rs scheme.
The parsing target are math expressions following this grammar:

expr -> expr ('+' | '-') term | term
term -> term ('*' | '/' | '%') factor | factor
factor -> power '^' factor | power
power -> ('-' | '+') power | base
base -> '(' expr ')' | number
number -> [0-9]+

Techniques

For now these are the parsing techniques I used:

Resources

These are the resources I used for learning about parsers:
recursive descent parsing:

recursive ascent parsing:

pratt parsing:

License

Distributed under the MIT License. See LICENSE for more information.