Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 274 Bytes

Grammar.md

File metadata and controls

16 lines (14 loc) · 274 Bytes

Grammar for artihmetics with weight management

Exprs = Expr
Expr = Exnum "="
Exnum = Fact
Exnum = Exnum "+" Fact
Exnum = Exnum "-" Fact
Fact = Term
Fact = Fact "*" Term
Fact = Fact "/" Term
Term = "nb"
Term = "(" Exnum ")"

(Same as the one in the lesson :O)