diff --git a/src/parser.y b/src/parser.y index 828505a..6875349 100644 --- a/src/parser.y +++ b/src/parser.y @@ -75,6 +75,7 @@ stmt: expr: NUMBER { $$ = std::make_unique($1); } | IDENTIFIER { $$ = std::make_unique($1); } + | STRING { $$ = std::make_unique($1); } | expr PLUS expr { $$ = std::make_unique( BinaryOperator(BinaryOperator::ADD), std::move($1), std::move($3)); }