aboutsummaryrefslogtreecommitdiff
path: root/grammars/lisp.bp
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-18 12:39:44 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-18 12:39:44 -0800
commit71471476be004f65abb75cd3817046dcf433d203 (patch)
tree9f827325be715b92a4bd3f493653f4f29efade67 /grammars/lisp.bp
parent218ea864e133f8dd10b3c189eb07a5c56286e792 (diff)
Performance optimizations for `id` and `|` rules
Diffstat (limited to 'grammars/lisp.bp')
-rw-r--r--grammars/lisp.bp4
1 files changed, 3 insertions, 1 deletions
diff --git a/grammars/lisp.bp b/grammars/lisp.bp
index 5dd2965..a3e525c 100644
--- a/grammars/lisp.bp
+++ b/grammars/lisp.bp
@@ -11,4 +11,6 @@ string: `" .. `" % (`\.)
list: parens
function-def: `(__"defun"|__id
function: function-def .. `) % parens
-id-char: `A-Z,a-z,0-9,!,$,%,&,*,+,-,.,/,:,<,=,>,?,@,^,_,~
+id-char: `A-Z,a-z,0-9,!,$,%,&,*,+,-,.,/,:,<,=,>,?,@,^,_,~
+id: !<`A-Z,a-z,0-9,!,$,%,&,*,+,-,.,/,:,<,=,>,?,@,^,_,~ +`A-Z,a-z,0-9,!,$,%,&,*,+,-,.,/,:,<,=,>,?,@,^,_,~
+|: !<`A-Z,a-z,0-9,!,$,%,&,*,+,-,.,/,:,<,=,>,?,@,^,_,~ / !`A-Z,a-z,0-9,!,$,%,&,*,+,-,.,/,:,<,=,>,?,@,^,_,~