fix: lint errors

This commit is contained in:
Felix Roos 2025-03-15 10:35:22 +01:00
parent 62705da3de
commit dbe3915368
No known key found for this signature in database

View file

@ -8,18 +8,18 @@ This program is free software: you can redistribute it and/or modify it under th
export class UzuParser { export class UzuParser {
// these are the tokens we expect // these are the tokens we expect
token_types = { token_types = {
string: /^\"(.*?)\"/, string: /^"(.*?)"/,
open_list: /^\(/, open_list: /^\(/,
close_list: /^\)/, close_list: /^\)/,
open_cat: /^\</, open_cat: /^</,
close_cat: /^\>/, close_cat: /^>/,
open_seq: /^\[/, open_seq: /^\[/,
close_seq: /^\]/, close_seq: /^\]/,
number: /^[0-9]*\.?[0-9]+/, // before pipe! number: /^[0-9]*\.?[0-9]+/, // before pipe!
pipe: /^\./, pipe: /^\./,
stack: /^\,/, stack: /^,/,
op: /^[\*\/]/, op: /^[*/]/,
plain: /^[a-zA-Z0-9\-]+/, plain: /^[a-zA-Z0-9-]+/,
}; };
// matches next token // matches next token
next_token(code) { next_token(code) {