class Arborist::NegLookAhead
- Arborist::NegLookAhead
- Reference
- Object
Overview
Non-consuming negative lookahead match of e
Defined in:
arborist.crConstructors
Instance Method Summary
-
#eval(matcher) : ParseTree | Nil
this should return true if the expr does not match, and nil otherwise; do not return false, because nil indicates parse failure
- #label(label : String) : NegLookAhead
- #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(exp : 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
this should return true if the expr does not match, and nil otherwise; do not return false, because nil indicates parse failure
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
.