added strings
This commit is contained in:
parent
c76b84682a
commit
922213d9c6
1 changed files with 1 additions and 0 deletions
|
|
@ -75,6 +75,7 @@ stmt:
|
|||
expr:
|
||||
NUMBER { $$ = std::make_unique<Number>($1); }
|
||||
| IDENTIFIER { $$ = std::make_unique<Identifier>($1); }
|
||||
| STRING { $$ = std::make_unique<String>($1); }
|
||||
| expr PLUS expr { $$ = std::make_unique<BinOp>(
|
||||
BinaryOperator(BinaryOperator::ADD),
|
||||
std::move($1), std::move($3)); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue