Closed chharvey closed 4 years ago
Expand the LR syntactic grammar to parse expressions containing integer literals, string literals, string templates, and variable identifiers. Support the same operations as for integers.
ExpressionUnit ::= PrimitiveLiteral | StringTemplate | IDENTIFIER | "(" Expression ")" StringTemplate ::= STRING_TEMPLATE_FULL | STRING_TEMPLATE_HEAD Expression? (STRING_TEMPLATE_MIDDLE Expression?)* STRING_TEMPLATE_TAIL PrimitiveLiteral ::= NUMBER | STRING_LITERAL
Expand the LR syntactic grammar to parse expressions containing integer literals, string literals, string templates, and variable identifiers. Support the same operations as for integers.