Package | Description |
---|---|
org.parboiled | |
org.parboiled.matchers | |
org.parboiled.parserunners | |
org.parboiled.support | |
org.parboiled.test |
Modifier and Type | Field and Description |
---|---|
static Rule |
BaseParser.ANY
Matches any character except
Chars.EOI . |
static Rule |
BaseParser.DEDENT
Matches the special
Chars.DEDENT character produces by the org.parboiled.buffers.IndentDedentInputBuffer |
static Rule |
BaseParser.EMPTY
Matches nothing and always succeeds.
|
static Rule |
BaseParser.EOI
Matches the
Chars.EOI (end of input) character. |
static Rule |
BaseParser.INDENT
Matches the special
Chars.INDENT character produces by the org.parboiled.buffers.IndentDedentInputBuffer |
static Rule |
BaseParser.NOTHING
Matches nothing and always fails.
|
Modifier and Type | Method and Description |
---|---|
Rule |
BaseParser.AnyOf(char[] characters)
Creates a new rule that matches any of the characters in the given char array.
|
Rule |
BaseParser.AnyOf(Characters characters)
Creates a new rule that matches any of the given characters.
|
Rule |
BaseParser.AnyOf(java.lang.String characters)
Creates a new rule that matches any of the characters in the given string.
|
Rule |
BaseParser.Ch(char c)
Explicitly creates a rule matching the given character.
|
Rule |
BaseParser.CharRange(char cLow,
char cHigh)
Creates a rule matching a range of characters from cLow to cHigh (both inclusively).
|
Rule |
BaseParser.FirstOf(java.lang.Object[] rules)
Creates a new rule that successively tries all of the given subrules and succeeds when the first one of
its subrules matches.
|
Rule |
BaseParser.FirstOf(java.lang.Object rule,
java.lang.Object rule2,
java.lang.Object... moreRules)
Creates a new rule that successively tries all of the given subrules and succeeds when the first one of
its subrules matches.
|
protected Rule |
BaseParser.fromCharArray(char[] array)
Used internally to convert the given char array to a parser rule.
|
protected Rule |
BaseParser.fromCharLiteral(char c)
Used internally to convert the given character literal to a parser rule.
|
protected Rule |
BaseParser.fromStringLiteral(java.lang.String string)
Used internally to convert the given string literal to a parser rule.
|
Rule |
ParserStatistics.getRootRule() |
Rule |
BaseParser.IgnoreCase(char... characters)
Explicitly creates a rule matching the given string in a case-independent fashion.
|
Rule |
BaseParser.IgnoreCase(char c)
Explicitly creates a rule matching the given character case-independently.
|
Rule |
BaseParser.IgnoreCase(java.lang.String string)
Explicitly creates a rule matching the given string in a case-independent fashion.
|
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 |
BaseParser.NoneOf(char[] characters)
Creates a new rule that matches all characters except the ones in the given char array and EOI.
|
Rule |
BaseParser.NoneOf(java.lang.String characters)
Creates a new rule that matches all characters except the ones in the given string and EOI.
|
Rule |
BaseParser.NTimes(int repetitions,
java.lang.Object rule)
Creates a new rule that repeatedly matches a given sub rule a certain fixed number of times.
|
Rule |
BaseParser.NTimes(int repetitions,
java.lang.Object rule,
java.lang.Object separator)
Creates a new rule that repeatedly matches a given sub rule a certain fixed number of times, optionally
separated by a given separator rule.
|
Rule |
BaseParser.OneOrMore(java.lang.Object rule)
Creates a new rule that tries repeated matches of its subrule and succeeds if the subrule matches at least once.
|
Rule |
BaseParser.OneOrMore(java.lang.Object rule,
java.lang.Object rule2,
java.lang.Object... moreRules)
Creates a new rule that tries repeated matches of a sequence of the given subrules and succeeds if the sequence
matches at least once.
|
Rule |
BaseParser.Optional(java.lang.Object rule)
Creates a new rule that tries a match on its subrule and always succeeds, independently of the matching
success of its sub rule.
|
Rule |
BaseParser.Optional(java.lang.Object rule,
java.lang.Object rule2,
java.lang.Object... moreRules)
Creates a new rule that tries a match on the sequence of the given subrules and always succeeds, independently
of the matching success of its sub sequence.
|
Rule |
BaseParser.Sequence(java.lang.Object[] rules)
Creates a new rule that only succeeds if all of its subrule succeed, one after the other.
|
Rule |
BaseParser.Sequence(java.lang.Object rule,
java.lang.Object rule2,
java.lang.Object... moreRules)
Creates a new rule that only succeeds if all of its subrule succeed, one after the other.
|
Rule |
Rule.skipNode()
Instructs parboiled to not create a parse tree node for this rule.
|
Rule |
BaseParser.String(char... characters)
Explicitly creates a rule matching the given string.
|
Rule |
BaseParser.String(java.lang.String string)
Explicitly creates a rule matching the given string.
|
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.
|
Rule |
BaseParser.Test(java.lang.Object rule)
Creates a new rule that acts as a syntactic predicate, i.e.
|
Rule |
BaseParser.Test(java.lang.Object rule,
java.lang.Object rule2,
java.lang.Object... moreRules)
Creates a new rule that acts as a syntactic predicate, i.e.
|
Rule |
BaseParser.TestNot(java.lang.Object rule)
Creates a new rule that acts as an inverse syntactic predicate, i.e.
|
Rule |
BaseParser.TestNot(java.lang.Object rule,
java.lang.Object rule2,
java.lang.Object... moreRules)
Creates a new rule that acts as an inverse syntactic predicate, i.e.
|
Rule |
BaseParser.toRule(java.lang.Object obj)
Converts the given object to a rule.
|
Rule[] |
BaseParser.toRules(java.lang.Object... objects)
Converts the given object array to an array of rules.
|
Rule |
BaseParser.ZeroOrMore(java.lang.Object rule)
Creates a new rule that tries repeated matches of its subrule.
|
Rule |
BaseParser.ZeroOrMore(java.lang.Object rule,
java.lang.Object rule2,
java.lang.Object... moreRules)
Creates a new rule that tries repeated matches of the sequence of the given sub rules.
|
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
Matcher s. |
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. |
(package private) class |
CustomDefaultLabelMatcher<T extends CustomDefaultLabelMatcher<T>> |
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 |
VarFramingMatcher.label(java.lang.String label) |
Rule |
ProxyMatcher.label(java.lang.String label) |
Rule |
MemoMismatchesMatcher.label(java.lang.String label) |
Rule |
VarFramingMatcher.memoMismatches() |
Rule |
ProxyMatcher.memoMismatches() |
Rule |
MemoMismatchesMatcher.memoMismatches() |
Rule |
AbstractMatcher.memoMismatches() |
Rule |
VarFramingMatcher.skipNode() |
Rule |
ProxyMatcher.skipNode() |
Rule |
MemoMismatchesMatcher.skipNode() |
Rule |
AbstractMatcher.skipNode() |
Rule |
VarFramingMatcher.suppressNode() |
Rule |
ProxyMatcher.suppressNode() |
Rule |
MemoMismatchesMatcher.suppressNode() |
Rule |
ActionMatcher.suppressNode() |
Rule |
AbstractMatcher.suppressNode() |
Rule |
VarFramingMatcher.suppressSubnodes() |
Rule |
ProxyMatcher.suppressSubnodes() |
Rule |
MemoMismatchesMatcher.suppressSubnodes() |
Rule |
AbstractMatcher.suppressSubnodes() |
Modifier and Type | Method and Description |
---|---|
private static Matcher[] |
AbstractMatcher.toMatchers(Rule[] subRules) |
Constructor and Description |
---|
AbstractMatcher(Rule[] subRules,
java.lang.String label) |
AbstractMatcher(Rule subRule,
java.lang.String label) |
CustomDefaultLabelMatcher(Rule[] subRules,
java.lang.String defaultLabel) |
CustomDefaultLabelMatcher(Rule subRule,
java.lang.String defaultLabel) |
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 | Field and Description |
---|---|
private java.util.Map<Rule,ProfilingParseRunner.RuleReport> |
ProfilingParseRunner.ruleReports |
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 . |
Modifier and Type | Method and Description |
---|---|
ParboiledTest.TestResult<V> |
ParboiledTest.test(Rule rule,
InputBuffer inputBuffer) |
ParboiledTest.TestResult<V> |
ParboiledTest.test(Rule rule,
java.lang.String input) |
ParboiledTest.TestResult<V> |
ParboiledTest.testWithRecovery(Rule rule,
InputBuffer inputBuffer) |
ParboiledTest.TestResult<V> |
ParboiledTest.testWithRecovery(Rule rule,
java.lang.String input) |