class

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)
Source

Instance methods

_match(source, offset, state) : MatchResult
Source
description
Source
dsl_name
Source
inspect(io)
Source