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:
parent
e3b8930111
commit
d79166a5bc
6 changed files with 4987 additions and 25 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue