diff --git a/src/parser/parser.yc b/src/parser/parser.yc index d094749..b34190d 100644 --- a/src/parser/parser.yc +++ b/src/parser/parser.yc @@ -128,10 +128,15 @@ constant primary_expression : IDENTIFIER | constant - | STRING_LITERAL + | string_literals | LPAREN expression RPAREN ; +string_literals + : STRING_LITERAL + | string_literals STRING_LITERAL + ; + postfix_expression : primary_expression | postfix_expression LBRACKET expression RBRACKET