Parse string concatenation

This commit is contained in:
Brandon Dyck 2023-06-28 16:38:00 -06:00
parent ba5283694e
commit b72c6e9992

View File

@ -142,7 +142,9 @@ class Parser
private Expr sum() => binaryLeft(product, TokenType.Minus, TokenType.Plus); 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() private Expr unary()
{ {