Add opposite values and README.md

This commit is contained in:
2021-03-08 11:21:50 -08:00
parent 36d1eee759
commit bb89c93344
4 changed files with 93 additions and 2 deletions

View File

@@ -24,8 +24,8 @@ var scptLexer = lexer.Must(stateful.NewSimple([]stateful.Rule{
{"Ident", `[a-zA-Z_]\w*`, nil},
{"String", `"[^"]*"`, nil},
{"Number", `(?:\d*\.)?\d+`, nil},
{"Punct", `[-[!@$&(){}\|:;"',.?/]|]`, nil},
{"Punct", `[![@$&(){}\|:;"',.?]|]`, nil},
{"Whitespace", `[ \t\r\n]+`, nil},
{"Comment", `(###(.|\n)+###|#[^\n]+)`, nil},
{"Operator", `(>=|<=|>|<|==|!=)|[-+*/^%]`, nil},
{"Operator", `(>=|<=|>|<|==|!=)|[-+*%/^]`, nil},
}))