You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36-36
Original file line number
Diff line number
Diff line change
@@ -12,28 +12,28 @@ You can also try the online version, PEG Playground at https://yhirose.github.io
12
12
13
13
The PEG syntax is well described on page 2 in the [document](http://www.brynosaurus.com/pub/lang/peg.pdf) by Bryan Ford. *cpp-peglib* also supports the following additional syntax for now:
14
14
15
-
*`'...'i` (Case-insensitive literal operator)
16
-
*`[...]i` (Case-insensitive character class operator)
17
-
*`[^...]` (Negated character class operator)
18
-
*`[^...]i` (Case-insensitive negated character class operator)
19
-
*`{2,5}` (Regex-like repetition operator)
20
-
*`<` ... `>` (Token boundary operator)
21
-
*`~` (Ignore operator)
22
-
*`\x20` (Hex number char)
23
-
*`\u10FFFF` (Unicode char)
24
-
*`%whitespace` (Automatic whitespace skipping)
25
-
*`%word` (Word expression)
26
-
*`$name(` ... `)` (Capture scope operator)
27
-
*`$name<` ... `>` (Named capture operator)
28
-
*`$name` (Backreference operator)
29
-
*`|` (Dictionary operator)
30
-
*`↑` (Cut operator)
31
-
*`MACRO_NAME(` ... `)` (Parameterized rule or Macro)
32
-
*`{ precedence L - + L / * }` (Parsing infix expression)
33
-
*`%recovery(` ... `)` (Error recovery operator)
34
-
*`exp⇑label` or `exp^label` (Syntax sugar for `(exp / %recover(label))`)
0 commit comments