Skip to content

jorendorff/toy-calculator

Repository files navigation

Toy calculator for my talk on compilers at Coderfaire 2013. Try it out.

The grammar is:

PrimaryExpr:
    Number
    Name
    ( Expr )

MulExpr :
    NegExpr
    NegExpr * NegExpr ...
    NegExpr / NegExpr ...

Expr :
    MulExpr
    MulExpr + MulExpr
    MulExpr - MulExpr

About

A toy parser for a talk about compilers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published