Skip to content

rmrt1n/parsers

Repository files navigation

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.