Add conversion functions and move other defaults to cmd/scpt

This commit is contained in:
2021-03-03 00:27:54 -08:00
parent ba11fdcf76
commit e6d195f364
6 changed files with 37 additions and 68 deletions

View File

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