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
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,12 +44,18 @@ Then you only need to write: `require("./parser.pegjs")`.
44
44
45
45
You can pass options to PEG.js as [query parameters](http://webpack.github.io/docs/using-loaders.html#query-parameters). The following options are supported:
46
46
47
-
*`cache` — if`true`, makes the parser cache results, avoiding exponential
47
+
*`cache` — If`true`, makes the parser cache results, avoiding exponential
48
48
parsing time in pathological cases but making the parser slower (default:
49
-
`false`)
49
+
`false`).
50
50
51
-
*`optimize` - whether to optimize the built parser either for `speed` or
52
-
`size` (default: `speed`)
51
+
*`optimize` - Whether to optimize the built parser either for `speed` or
52
+
`size` (default: `speed`).
53
+
54
+
*`allowedStartRules` - The rules the built parser will be allowed to start
55
+
parsing from (default: the first rule in the grammar).
56
+
57
+
*`trace` - If `true`, the tracing support in the built parser is enabled
0 commit comments