fix: bootstrap parser newline skipping + nexus compile errors

- Add tkNewLine skipping in bootstrap parser parsePrimary, parseUnary, parsePostfix
- Fix nexus: req.String_Len(path) -> String_Len(req.path)
- Fix nexus: bux_sb_append_char with char literal -> bux_sb_append with string
This commit is contained in:
2026-06-08 20:28:37 +03:00
parent 9c3d6dc723
commit cf92b63ba6
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -392,6 +392,8 @@ proc parseExpr(p: var Parser): Expr =
p.parseAssign()
proc parsePrimary(p: var Parser): Expr =
while p.check(tkNewLine):
discard p.advance()
let loc = p.currentLoc
case p.peek()
of tkIntLiteral, tkFloatLiteral, tkStringLiteral, tkCharLiteral, tkBoolLiteral:
@@ -509,6 +511,8 @@ proc parsePrimary(p: var Parser): Expr =
proc parsePostfix(p: var Parser): Expr =
var left = p.parsePrimary()
while true:
while p.check(tkNewLine):
discard p.advance()
let loc = p.currentLoc
case p.peek()
of tkLParen:
@@ -605,6 +609,8 @@ proc parsePostfix(p: var Parser): Expr =
return left
proc parseUnary(p: var Parser): Expr =
while p.check(tkNewLine):
discard p.advance()
let loc = p.currentLoc
case p.peek()
of tkBorrow: