Analyzer class
Helper to reflect on properties of a grammar.
Properties
Methods
-
allChildren(
Parser parser) → Set< Parser> -
Returns a set of all deep children reachable from
parser
. -
cycleSet(
Parser parser) → Iterable< Parser> -
Returns the cycle-set of a
parser
. -
findAllPaths(
Parser source, Predicate< ParserPath> predicate) → Iterable<ParserPath> -
Returns all paths starting at
source
that satisfy the givenpredicate
. -
findAllPathsTo(
Parser source, Parser target) → Iterable< ParserPath> -
Returns all paths starting at
source
that end intarget
. -
findPath(
Parser source, Predicate< ParserPath> predicate) → ParserPath? -
Returns the shortest path from
source
that satisfies the givenpredicate
, if any. -
findPathTo(
Parser source, Parser target) → ParserPath? -
Returns the shortest path from
source
totarget
, if any. -
firstSet(
Parser parser) → Iterable< Parser> -
Returns the first-set of
parser
. -
followSet(
Parser parser) → Iterable< Parser> -
Returns the follow-set of a
parser
. -
isNullable(
Parser parser) → bool -
Returns
true
ifparser
is transitively nullable, that is it can successfully parse nothing. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
sentinel
→ EpsilonParser<
void> -
A unique parser used as a marker in firstSet and followSet
computations.
final