BlockRule class abstract
A reusable rule that expands into basic rules when the grammar is compiled.
The built-in blocks cover what most languages repeat: comments, strings, numbers, operators and annotations, so most grammars need no regular expressions. Extend this class to make your own blocks.
- Inheritance
- Implementers
Constructors
- BlockRule()
-
Base constructor for blocks.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
expand(
) → List< Rule> - The basic rules this block stands for. Called once per block.
-
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