File tree 2 files changed +7
-8
lines changed
2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 22
22
within a certain set.
23
23
24
24
@li
25
- Added @code{CharIn.raw}, @code{ CharsWhile.raw}, @code{CharPred.raw}
25
+ Added @code{CharsWhile.raw}, @code{CharPred.raw}
26
26
intrinsics, which are identical to the non-@code{raw} versions except
27
27
these do not pre-compute a lookup table for use during parsing. This
28
28
could be useful if you find your parsers are taking too long to
Original file line number Diff line number Diff line change 18
18
You can also wrap the strings in an @hl.scala{IgnoreCase("...")} if you want the matching to be case-insensitive.
19
19
20
20
@p
21
- The @code{P(...)} lets you write mutually recursive parsers;
22
- without it you run into circular initialization problems and
23
- @code{NullPointerException}s. It also provides that parser with a
24
- nice, human-readable name that is derived from the @hl.scala{{val}
25
- it is being assigned to. In general, every time you assign a parser
26
- to a @hl.scala{val}, you should wrap it in @code{P(...)} to allow
27
- for recursion and assist your future debugging.
21
+ The @code{P(...)} lets you write mutually recursive parsers, without
22
+ running into circular initialization problems, and gives the parser a
23
+ nice, human-readable name (from the @hl.scala{val}
24
+ it is being assigned to) which appears in parse error messages.
25
+ In general, every time you assign a parser
26
+ to a @hl.scala{val}, you should wrap it in @code{P(...)}.
28
27
29
28
@sect{Sequence}
30
29
You can’t perform that action at this time.
0 commit comments