PegCompiler¶
Compiles a PEG grammar source into an executable Parser. Returns either
the compiled parser or an array of errors found during compilation. The
grammar must define a start rule and may define a hidden rule for
whitespace/comments.
Constructors¶
create¶
Returns¶
- PegCompiler val^
Public Functions¶
apply¶
Compile source as a PEG grammar. On success, returns a Parser val
ready to parse input. On failure, returns the accumulated errors.
Parameters¶
- source: Source val
Returns¶
eq¶
Parameters¶
- that: PegCompiler val
Returns¶
- Bool val
ne¶
Parameters¶
- that: PegCompiler val
Returns¶
- Bool val