Font editer coming a long. first font is looking good. some parser changes to accomodate any string as record fields. other stuff

This commit is contained in:
Dustin Swan 2026-02-23 21:11:20 -07:00
parent e3b8930111
commit d79166a5bc
No known key found for this signature in database
GPG key ID: 30D46587E2100467
6 changed files with 4987 additions and 25 deletions

View file

@ -44,11 +44,11 @@ export class Parser {
private expectIdent(): Token {
const token = this.current();
if (token.kind === 'ident' || token.kind === 'type-ident') {
if (token.kind === 'ident' || token.kind === 'type-ident' || token.kind === 'string') {
this.advance();
return token;
}
throw this.error(`Expected identifier, got ${token.kind}`);
throw ParseError(`Expected identifier, got ${token.kind}`);
}
private getPos(token: Token) {