fix: lint errors
This commit is contained in:
parent
62705da3de
commit
dbe3915368
1 changed files with 6 additions and 6 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue