Changed to allow digits in identifier.

This commit is contained in:
yhirose 2015-05-29 00:20:15 -04:00
parent 3eded9ea36
commit fe88c34649

View File

@ -27,7 +27,7 @@ static auto g_grammar = R"(
CONDITION_OPERATOR <- < ('==' / '!=' / '<=' / '<' / '>=' / '>') > _
TERM_OPERATOR <- < [-+] > _
FACTOR_OPERATOR <- < [*/%] > _
IDENTIFIER <- < [a-zA-Z_]+ > _
IDENTIFIER <- < [a-zA-Z_][a-zA-Z0-9_]* > _
NUMBER <- < [0-9]+ > _
BOOLEAN <- < ('true' / 'false') > _