SymbolRootNode class

This class is a special case of a SymbolNode. A SymbolRootNode object has no symbol of its own, but has children that represent all possible symbols.

Inheritance

Constructors

SymbolRootNode()
Creates and initializes a root node.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenType TokenType
getter/setter pairinherited
valid bool
getter/setter pairinherited

Methods

add(String value, TokenType tokenType) → void
Add the given string as a symbol.
addDescendantLine(String value, TokenType tokenType) → void
Add a line of descendants that represent the characters in the given string.
inherited
ancestry() String?
Show the symbol this node represents. Returns The symbol this node represents.
inherited
deepestRead(IScanner scanner) SymbolNode
Find the descendant that takes as many characters as possible from the input.
inherited
ensureChildWithChar(int value) SymbolNode
Find or create a child for the given character.
inherited
findChildWithChar(int value) SymbolNode?
Find a child with the given character.
inherited
findDescendant(String value) SymbolNode?
Find a descendant which is down the path the given string indicates.
inherited
nextToken(IScanner scanner) Token
Return a symbol string from a scanner.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unreadToValid(IScanner scanner) SymbolNode
Unwind to a valid node; this node is "valid" if its ancestry represents a complete symbol. If this node is not valid, put back the character and ask the parent to unwind.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited