blob: 1ac139e00aa7a01934bb563fb704ac0d93f868ea (
plain) (
tree)
|
|
Program ::= Statement+
Statement ::= (VariableStatement | PrintStatement) SEMICOLON
VariableStatement ::= ("let" IDENTIFIER | IDENTIFIER) EQUALS Expression
PrintStatement :== PRINT LPAREN Expression RPAREN
Expression :== NUMBER | IDENTIFIER | Expression + Expression
|