Uses of Interface
org.parboiled.Rule
-
Packages that use Rule Package Description org.parboiled org.parboiled.matchers org.parboiled.parserunners org.parboiled.support -
-
Uses of Rule in org.parboiled
Methods in org.parboiled that return Rule Modifier and Type Method 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.Methods in org.parboiled with parameters of type Rule Modifier and Type Method Description static ParserStatistics
ParserStatistics. generateFor(Rule rule)
-
Uses of Rule in org.parboiled.matchers
Subinterfaces of Rule in org.parboiled.matchers Modifier and Type Interface Description interface
Matcher
A Matcher instance is responsible for "executing" a specific Rule instance, i.e.Classes in org.parboiled.matchers that implement Rule Modifier and Type Class Description class
AbstractMatcher
Abstract base class of most regularMatcher
s.class
ActionMatcher
class
AnyMatcher
AMatcher
matching any single character except EOI.class
AnyOfMatcher
AMatcher
matching a single character out of a givenCharacters
set.class
CharIgnoreCaseMatcher
AMatcher
matching a single character case-independently.class
CharMatcher
AMatcher
matching a single given character.class
CharRangeMatcher
AMatcher
matching a single character out of a given range of characters.class
CustomMatcher
Base class of custom matcher implementations.class
EmptyMatcher
AMatcher
that always successfully matches nothing.class
FirstOfMatcher
AMatcher
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
AMatcher
that never matches anything.class
OneOrMoreMatcher
AMatcher
that repeatedly tries its submatcher against the input.class
OptionalMatcher
AMatcher
that tries its submatcher once against the input and always succeeds.class
ProxyMatcher
class
SequenceMatcher
AMatcher
that executes all of its submatchers in sequence and only succeeds if all submatchers succeed.class
StringMatcher
ASequenceMatcher
specialization for sequences of CharMatchers.class
TestMatcher
A specialMatcher
not actually matching any input but rather trying its submatcher against the current input position.class
TestNotMatcher
A specialMatcher
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
AMatcher
that repeatedly tries its submatcher against the input.Methods in org.parboiled.matchers that return Rule Modifier and Type Method Description Rule
MemoMismatchesMatcher. label(java.lang.String label)
Rule
ProxyMatcher. label(java.lang.String label)
Rule
VarFramingMatcher. label(java.lang.String label)
Rule
AbstractMatcher. memoMismatches()
Rule
MemoMismatchesMatcher. memoMismatches()
Rule
ProxyMatcher. memoMismatches()
Rule
VarFramingMatcher. memoMismatches()
Rule
AbstractMatcher. skipNode()
Rule
MemoMismatchesMatcher. skipNode()
Rule
ProxyMatcher. skipNode()
Rule
VarFramingMatcher. skipNode()
Rule
AbstractMatcher. suppressNode()
Rule
ActionMatcher. suppressNode()
Rule
MemoMismatchesMatcher. suppressNode()
Rule
ProxyMatcher. suppressNode()
Rule
VarFramingMatcher. suppressNode()
Rule
AbstractMatcher. suppressSubnodes()
Rule
MemoMismatchesMatcher. suppressSubnodes()
Rule
ProxyMatcher. suppressSubnodes()
Rule
VarFramingMatcher. suppressSubnodes()
Constructors in org.parboiled.matchers with parameters of type Rule Constructor 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)
-
Uses of Rule in org.parboiled.parserunners
Fields in org.parboiled.parserunners declared as Rule Modifier and Type Field Description Rule
RecoveringParseRunner.TimeoutException. rule
Methods in org.parboiled.parserunners with parameters of type Rule Modifier and Type Method Description 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.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.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.Constructors in org.parboiled.parserunners with parameters of type Rule Constructor 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 timeoutMillis)
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. -
Uses of Rule in org.parboiled.support
Methods in org.parboiled.support with parameters of type Rule Modifier and Type Method Description static Predicate<Tuple2<Context<?>,java.lang.Boolean>>
Filters. onlyRules(Rule... rules)
A predicate usable as a filter (element) of aTracingParseRunner
.static Predicate<Tuple2<Context<?>,java.lang.Boolean>>
Filters. rules(Rule... rules)
A predicate usable as a filter (element) of aTracingParseRunner
.static Predicate<Tuple2<Context<?>,java.lang.Boolean>>
Filters. rulesBelow(Rule... rules)
A predicate usable as a filter (element) of aTracingParseRunner
.
-