Skip to content

A toy parser for a talk about compilers

License

Notifications You must be signed in to change notification settings

TUSF/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

Languages

  • JavaScript 95.7%
  • HTML 4.3%