class Arborist::Sequence
- Arborist::Sequence
- Reference
- Object
Defined in:
arborist.crConstructors
Instance Method Summary
-
#eval(matcher) : ParseTree | Nil
returns Array(ParseTree) | Nil
- #label(label : String) : Sequence
- #label : String | Nil
- #label=(label : String | Nil)
- #preorder_traverse(matcher, visit : Expr -> _, visited_nodes : Set(Expr))
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
Constructor Detail
def self.new(exps : Array(Arborist::Apply | Arborist::Choice | Arborist::Dot | Arborist::MutexAlt | Arborist::NegLookAhead | Arborist::Optional | Arborist::PosLookAhead | Arborist::Repetition | Arborist::RepetitionOnePlus | Arborist::Sequence | Arborist::Terminal))
#
Instance Method Detail
def to_s
#
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.