Parse string concatenation
This commit is contained in:
parent
ba5283694e
commit
b72c6e9992
@ -142,7 +142,9 @@ class Parser
|
||||
|
||||
private Expr sum() => binaryLeft(product, TokenType.Minus, TokenType.Plus);
|
||||
|
||||
private Expr product() => binaryLeft(unary, TokenType.Slash, TokenType.Asterisk);
|
||||
private Expr product() => binaryLeft(concat, TokenType.Slash, TokenType.Asterisk);
|
||||
|
||||
private Expr concat() => binaryLeft(unary, TokenType.PlusPlus);
|
||||
|
||||
private Expr unary()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user