blob: 5340ba4fa849dce619ce26c931363a2a0e5e2f17 (
plain) (
tree)
|
|
Program ::= Statement+
Statement ::= (VariableStatement | PrintStatement | ReturnStatement) SEMICOLON
VariableStatement ::= ("let" IDENTIFIER | IDENTIFIER) EQUALS Expression
PrintStatement :== PRINT LPAREN Expression RPAREN
ReturnStatement :== RETURN Expression
Expression :== NUMBER | IDENTIFIER | Expression + Expression
|