Pegmatite::Pattern::Not
Inherits Pegmatite::Pattern < Pegmatite::DSL::Methods < Reference < Object
Pattern::Not is used for negative-lookahead.
Parsing will fail if the child pattern parsing succeeds. Otherwise, the pattern succeeds, consuming zero bytes.
Composing two Pattern::Not instances inside one another is a valid strategy for positive lookahead. (TODO: test for this example)
Constructors
new(child : Pattern)
SourceInstance methods
_match(source, offset, state) : MatchResult
Sourcedescription
Sourcedsl_name
Sourceinspect(io)
Source