diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-08-01 12:40:27 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-08-01 12:40:27 -0700 |
| commit | 994c9c973e0fd771699c3a5c76bee11f9b744c84 (patch) | |
| tree | 8257c1abe2d18a50a46a1d712eadbd25fd7e4f8b /grammars/bp.bp | |
| parent | cb9b4c40d87480bc794b90c2a36ed0f4c3240d8a (diff) | |
Changed how definitions work
Diffstat (limited to 'grammars/bp.bp')
| -rw-r--r-- | grammars/bp.bp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/grammars/bp.bp b/grammars/bp.bp index 3374f0c..2b0f4f9 100644 --- a/grammars/bp.bp +++ b/grammars/bp.bp @@ -12,13 +12,13 @@ Def: @name=id __ `: __ ( / (!)(..%\n>(`;/id_`:/$) => "Invalid definition: @0")) # This is used for command line arguments: - String-pattern: ..%(\n / Nodent / Identifier-char / Identifier-start / Escape / `\ pat [`;])$$ +String-pattern: ..%(\n / Nodent / Identifier-char / Identifier-start / Escape / `\ pat [`;])$$ pat: simple-pat !(__("!~"/"~")) / suffixed-pat -simple-pat: Upto-and / Dot / Word-boundary/ String / Chars / Nodent +simple-pat: (Upto-and / Dot / Word-boundary/ String / Chars / Nodent / Identifier-char / Identifier-start / Escape-range / Escape / Repeat / Optional / No / After / Before / Capture / Error / Empty-replacement - / Start-of-File / Start-of-Line / End-of-File / End-of-Line / Ref / parens + / Start-of-File / Start-of-Line / End-of-File / End-of-Line / Ref / parens) suffixed-pat: ( Match-pat @@ -51,7 +51,7 @@ Nodent: "\N" Word-boundary: `| / "\b" Identifier-char: "\i" Identifier-start: "\I" -Upto-and: ".." [__(`%/`=)__@second=simple-pat] [__@first=simple-pat] +Upto-and: ".." [__(`%/`=)__@second=simple-pat] [__@first=simple-pat] Repeat: ( @min=(=>'0') (`*=>"-") @max=(=>'∞') / @min=int __ `- __ @max=int |
