diff options
Diffstat (limited to 'grammars')
| -rw-r--r-- | grammars/bpeg.bpeg | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/grammars/bpeg.bpeg b/grammars/bpeg.bpeg index ce10bc1..0c43c0e 100644 --- a/grammars/bpeg.bpeg +++ b/grammars/bpeg.bpeg @@ -9,18 +9,20 @@ Def: @name=id _ `: __ ( # This is used for command line arguments: String-pattern: 0+(`\ (escape-sequence / pat [`;]) / .) -pat: simple-pat !(__("=="/`*/`+/`?)) / suffixed-pat +pat: simple-pat !(__("!="/"=="/`*/`+/`?)) / suffixed-pat simple-pat: Upto-and / Dot / String / Char-range / Char / Escape-range / Escape / No / Nodent / Repeat / Optional / After / Before / Capture / Replace / Ref / parens suffixed-pat: ( Eq-pat + / Not-eq-pat / Star-pat / Plus-pat / Question-pat ) Eq-pat: @first=pat__"=="__@second=pat +Not-eq-pat: @first=pat__"!="__@second=pat Star-pat: pat __ `* @min={=>"0"} @max="" [__`%__@sep=pat] Plus-pat: pat __ `+ @min={=>"1"} @max="" [__`%__@sep=pat] Question-pat: pat __ `? |
