Parse string concatenation
This commit is contained in:
1 parent
ba5283694e
commit
b72c6e9992
1 file changed
+3
-1
@@ -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()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user