Add comma parsing to func call

This commit is contained in:
nub31
2026-03-09 15:44:30 +01:00
parent dd44e3edc4
commit 32042d0769
2 changed files with 4 additions and 1 deletions

View File

@@ -467,7 +467,10 @@ public class Parser
var parameters = new List<NodeExpression>();
while (!TryExpectSymbol(Symbol.CloseParen))
{
parameters.Add(ParseExpression());
TryExpectSymbol(Symbol.Comma);
}
expr = new NodeExpressionFuncCall(TokensFrom(startIndex), expr, parameters);
}

View File

@@ -1,7 +1,7 @@
module core
export func print(text: string) {
sys::write(0 text.ptr text.length)
sys::write(0, text.ptr, text.length)
}
export func println(text: string) {