Assemble kernel on the client #1

Merged
cdo merged 72 commits from client-side-assembler into main 2026-03-18 15:21:33 +00:00
Showing only changes of commit 7828b0f112 - Show all commits

8
asm.js
View File

@@ -59,12 +59,14 @@ class Tokenizer {
let token; let token;
while (token = this.next()) { while (token = this.next()) {
if (token.string == undefined if (token.string == undefined
&& token.startsWith(this.comment_start)) && token.startsWith(this.comment_start)) {
this.comment = true; this.comment = true;
else if (this.comment && token == LINE_END) } else if (this.comment && token == LINE_END) {
this.comment = false; this.comment = false;
else if (!this.comment) yield token;
} else if (!this.comment) {
yield token; yield token;
}
} }
} }
} }