diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2020-12-14 18:39:56 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2020-12-14 18:39:56 -0800 |
| commit | 9617baf699aeff816fae50841e11123ebd9c9366 (patch) | |
| tree | 504da046e6c109529b66801b5d08d6d1bddc7689 /grammars/builtins.bp | |
| parent | c9daa5f29f1b23e7ce3180b77029b7f61313df20 (diff) | |
Updated grammars
Diffstat (limited to 'grammars/builtins.bp')
| -rw-r--r-- | grammars/builtins.bp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/grammars/builtins.bp b/grammars/builtins.bp index 7de936f..ec541bf 100644 --- a/grammars/builtins.bp +++ b/grammars/builtins.bp @@ -49,10 +49,11 @@ utf8-codepoint: ( ) crlf: \r\n cr: \r -anglebraces: `< *(anglebraces / $. != `>) `> -brackets: `[ *(brackets / $. != `]) `] -braces: `{ *(braces / $. != `}) `} -parens: `( *(parens / $. != `)) `) +anglebraces: `<..`> % (anglebraces/string) +brackets: `[..`] % (brackets/string) +braces: `{..`} % (braces/string) +parens: `(..`} % (parens/string) +string: `"..`" % (`\.) / `'..`' % (`\.) id: !<(`a-z/`A-Z/`_/`0-9) (`a-z/`A-Z/`_) *(`a-z/`A-Z/`_/`0-9) id-char: `a-z/`A-Z/`_/`0-9 word: !<(`a-z/`A-Z/`_/`0-9) +(`a-z/`A-Z) !>(`0-9/`_) |
