| Package | Description |
|---|---|
| org.parboiled | |
| org.parboiled.matchers | |
| org.parboiled.parserunners | |
| org.parboiled.support |
| Modifier and Type | Method and Description |
|---|---|
Rule |
ParserStatistics.getRootRule() |
Rule |
Rule.label(java.lang.String label)
Attaches a label to this Rule.
|
Rule |
Rule.memoMismatches()
Enables memoization of rule mismatches for consecutive rule applications at the same input location.
|
Rule |
Rule.skipNode()
Instructs parboiled to not create a parse tree node for this rule.
|
Rule |
Rule.suppressNode()
Instructs parboiled to not create a parse tree node for this rule and all subrules,
which can significantly increase parsing performance.
|
Rule |
Rule.suppressSubnodes()
Instructs parboiled to not create parse tree nodes for the subrules of this rule,
which can significantly increase parsing performance.
|
| Modifier and Type | Method and Description |
|---|---|
static ParserStatistics |
ParserStatistics.generateFor(Rule rule) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Matcher
A Matcher instance is responsible for "executing" a specific Rule instance, i.e.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractMatcher
Abstract base class of most regular
Matchers. |
class |
ActionMatcher
|
class |
AnyMatcher
A
Matcher matching any single character except EOI. |
class |
AnyOfMatcher
A
Matcher matching a single character out of a given Characters set. |
class |
CharIgnoreCaseMatcher
A
Matcher matching a single character case-independently. |
class |
CharMatcher
A
Matcher matching a single given character. |
class |
CharRangeMatcher
A
Matcher matching a single character out of a given range of characters. |
class |
CustomMatcher
Base class of custom matcher implementations.
|
class |
EmptyMatcher
A
Matcher that always successfully matches nothing. |
class |
FirstOfMatcher
A
Matcher trying all of its submatchers in sequence and succeeding when the first submatcher succeeds. |
class |
FirstOfStringsMatcher
A specialized FirstOfMatcher that handles FirstOf(string, string, ...) rules much faster that the regular
FirstOfMatcher.
|
class |
MemoMismatchesMatcher
Special wrapping matcher that performs memoization of the last mismatch of the wrapped sub rule.
|
class |
NothingMatcher
A
Matcher that never matches anything. |
class |
OneOrMoreMatcher
A
Matcher that repeatedly tries its submatcher against the input. |
class |
OptionalMatcher
A
Matcher that tries its submatcher once against the input and always succeeds. |
class |
ProxyMatcher
|
class |
SequenceMatcher
A
Matcher that executes all of its submatchers in sequence and only succeeds if all submatchers succeed. |
class |
StringMatcher
A
SequenceMatcher specialization for sequences of CharMatchers. |
class |
TestMatcher
A special
Matcher not actually matching any input but rather trying its submatcher against the current input
position. |
class |
TestNotMatcher
A special
Matcher not actually matching any input but rather trying its submatcher against the current input
position. |
class |
VarFramingMatcher
Special wrapping matcher that manages the creation and destruction of execution frames for a number of action vars.
|
class |
ZeroOrMoreMatcher
A
Matcher that repeatedly tries its submatcher against the input. |
| Modifier and Type | Method and Description |
|---|---|
Rule |
MemoMismatchesMatcher.label(java.lang.String label) |
Rule |
ProxyMatcher.label(java.lang.String label) |
Rule |
VarFramingMatcher.label(java.lang.String label) |
Rule |
MemoMismatchesMatcher.memoMismatches() |
Rule |
ProxyMatcher.memoMismatches() |
Rule |
VarFramingMatcher.memoMismatches() |
Rule |
AbstractMatcher.memoMismatches() |
Rule |
MemoMismatchesMatcher.skipNode() |
Rule |
ProxyMatcher.skipNode() |
Rule |
VarFramingMatcher.skipNode() |
Rule |
AbstractMatcher.skipNode() |
Rule |
MemoMismatchesMatcher.suppressNode() |
Rule |
ActionMatcher.suppressNode() |
Rule |
ProxyMatcher.suppressNode() |
Rule |
VarFramingMatcher.suppressNode() |
Rule |
AbstractMatcher.suppressNode() |
Rule |
MemoMismatchesMatcher.suppressSubnodes() |
Rule |
ProxyMatcher.suppressSubnodes() |
Rule |
VarFramingMatcher.suppressSubnodes() |
Rule |
AbstractMatcher.suppressSubnodes() |
| Constructor and Description |
|---|
AbstractMatcher(Rule[] subRules,
java.lang.String label) |
AbstractMatcher(Rule subRule,
java.lang.String label) |
CustomMatcher(Rule[] subRules,
java.lang.String label) |
CustomMatcher(Rule subRule,
java.lang.String label) |
FirstOfMatcher(Rule[] subRules) |
FirstOfStringsMatcher(Rule[] subRules,
char[][] strings) |
MemoMismatchesMatcher(Rule inner) |
OneOrMoreMatcher(Rule subRule) |
OptionalMatcher(Rule subRule) |
SequenceMatcher(Rule[] subRules) |
StringMatcher(Rule[] charMatchers,
char[] characters) |
TestMatcher(Rule subRule) |
TestNotMatcher(Rule subRule) |
VarFramingMatcher(Rule inner,
Var[] variables) |
ZeroOrMoreMatcher(Rule subRule) |
| Modifier and Type | Field and Description |
|---|---|
Rule |
RecoveringParseRunner.TimeoutException.rule |
| Modifier and Type | Method and Description |
|---|---|
static <V> ParsingResult<V> |
ReportingParseRunner.run(Rule rule,
java.lang.String input)
Deprecated.
As of 0.11.0 you should use the "regular" constructor and one of the "run" methods rather than
this static method. This method will be removed in one of the coming releases.
|
static <V> ParsingResult<V> |
RecoveringParseRunner.run(Rule rule,
java.lang.String input)
Deprecated.
As of 0.11.0 you should use the "regular" constructor and one of the "run" methods rather than
this static method. This method will be removed in one of the coming releases.
|
static <V> ParsingResult<V> |
BasicParseRunner.run(Rule rule,
java.lang.String input)
Deprecated.
As of 0.11.0 you should use the "regular" constructor and one of the "run" methods rather than
this static method. This method will be removed in one of the coming releases.
|
| Constructor and Description |
|---|
AbstractParseRunner(Rule rule) |
BasicParseRunner(Rule rule)
Creates a new BasicParseRunner instance for the given rule.
|
ErrorLocatingParseRunner(Rule rule)
Creates a new ErrorLocatingParseRunner instance for the given rule.
|
ErrorLocatingParseRunner(Rule rule,
MatchHandler inner)
Creates a new ErrorLocatingParseRunner instance for the given rule.
|
ErrorReportingParseRunner(Rule rule,
int errorIndex)
Creates a new ErrorReportingParseRunner instance for the given rule and the given errorIndex.
|
ErrorReportingParseRunner(Rule rule,
int errorIndex,
MatchHandler inner)
Creates a new ErrorReportingParseRunner instance for the given rule and the given errorIndex.
|
ProfilingParseRunner(Rule rule)
Creates a new ProfilingParseRunner instance for the given rule.
|
RecoveringParseRunner(Rule rule)
Creates a new RecoveringParseRunner instance for the given rule.
|
RecoveringParseRunner(Rule rule,
long timeout)
Creates a new RecoveringParseRunner instance for the given rule.
|
ReportingParseRunner(Rule rule)
Creates a new ReportingParseRunner instance for the given rule.
|
TimeoutException(Rule rule,
InputBuffer inputBuffer,
ParsingResult<?> lastParsingResult) |
TracingParseRunner(Rule rule)
Creates a new TracingParseRunner instance without filter and a console log for the given rule.
|
| Modifier and Type | Method and Description |
|---|---|
static Predicate<Tuple2<Context<?>,java.lang.Boolean>> |
Filters.onlyRules(Rule... rules)
A predicate usable as a filter (element) of a
TracingParseRunner. |
static Predicate<Tuple2<Context<?>,java.lang.Boolean>> |
Filters.rules(Rule... rules)
A predicate usable as a filter (element) of a
TracingParseRunner. |
static Predicate<Tuple2<Context<?>,java.lang.Boolean>> |
Filters.rulesBelow(Rule... rules)
A predicate usable as a filter (element) of a
TracingParseRunner. |