diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-17 22:13:32 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-17 22:13:32 -0800 |
| commit | 395bdd664f0c34250bf12ae3d947882325380ad8 (patch) | |
| tree | 8ee9f76b57d4963e75482696438abccdd3938d33 /grammars/lisp.bp | |
| parent | d2600c8832fe89650548dfe66927fb3c9c30b097 (diff) | |
Added Lisp
Diffstat (limited to 'grammars/lisp.bp')
| -rw-r--r-- | grammars/lisp.bp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/grammars/lisp.bp b/grammars/lisp.bp new file mode 100644 index 0000000..5dd2965 --- /dev/null +++ b/grammars/lisp.bp @@ -0,0 +1,14 @@ +# Syntax definitions for some Lisp-specific patterns +# +# NOTE: this is *NOT* intended to be a complete definition of the language's +# syntax! Providing a full language grammar is overkill, because the intended +# use case is finding/replacing string patterns. This task does not require a +# full parse tree, and having one makes the task considerably more complicated. +# See the accompanying README.md for more info. + +comment: ";" ..$ +string: `" .. `" % (`\.) +list: parens +function-def: `(__"defun"|__id +function: function-def .. `) % parens +id-char: `A-Z,a-z,0-9,!,$,%,&,*,+,-,.,/,:,<,=,>,?,@,^,_,~ |
