first commit
Some checks failed
Build and Deploy / build (push) Failing after 1m34s

This commit is contained in:
2025-11-23 03:24:27 +01:00
commit cc5b8b32bb
6193 changed files with 832271 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import {nextToken, skipLineComment} from "../tokenizer/index";
import {charCodes} from "../util/charcodes";
import {input, state} from "./base";
import {parseTopLevel} from "./statement";
export function parseFile() {
// If enabled, skip leading hashbang line.
if (
state.pos === 0 &&
input.charCodeAt(0) === charCodes.numberSign &&
input.charCodeAt(1) === charCodes.exclamationMark
) {
skipLineComment(2);
}
nextToken();
return parseTopLevel();
}