fix compiler authoring traps and showcase generation order

This commit is contained in:
2026-08-09 14:22:12 +05:30
parent 2e5c0cc953
commit 09ebd44b6c
29 changed files with 1437 additions and 5101 deletions
+6
View File
@@ -55,6 +55,12 @@ export class Lexer {
}
}
/** True when the next non-trivia characters open a block comment. */
startsWithBlockComment(): boolean {
this.skipTrivia();
return this.src[this.pos] === "/" && this.src[this.pos + 1] === "*";
}
/** Read and consume the next structural token. */
next(): Token {
this.skipTrivia();