Add ABB120 demo suite and docs

This commit is contained in:
wangdequan
2026-06-28 20:58:18 +08:00
parent 84a5b54195
commit 65187499d6
820 changed files with 215410 additions and 211 deletions

View File

@@ -339,6 +339,9 @@ class IoStatementParser {
}
private matchKeyword(keyword: string): boolean {
if (this.isAtEnd()) {
return false;
}
const token = this.peek();
if ((token.kind === "keyword" || token.kind === "identifier") && token.raw === keyword) {
this.advance();
@@ -348,6 +351,9 @@ class IoStatementParser {
}
private checkKeyword(keyword: string): boolean {
if (this.isAtEnd()) {
return false;
}
const token = this.peek();
return (token.kind === "keyword" || token.kind === "identifier") && token.raw === keyword;
}