Changed to allow ';' between statements.

This commit is contained in:
yhirose 2015-06-04 13:25:01 -04:00
parent a783e0addd
commit e0c657e52c

View File

@ -6,7 +6,7 @@ using namespace std;
static auto g_grammar = R"(
PROGRAM <- _ STATEMENTS
STATEMENTS <- EXPRESSION*
STATEMENTS <- (EXPRESSION (';' _)?)*
EXPRESSION <- ASSIGNMENT / PRIMARY
ASSIGNMENT <- MUTABLE IDENTIFIER '=' _ EXPRESSION