class

Pegmatite::Pattern::Forward

Inherits Pegmatite::Pattern < Pegmatite::DSL::Methods < Reference < Object

Pattern::Forward is used to create a forward declaration, such as when defining a pattern that will be used recursively with another.

There is no child pattern present at declaration, so one must be added later by calling define exactly once before the pattern is used to parse.

Returns the result of the child pattern's parsing.

Constructors

Instance methods

_match(source, offset, state) : MatchResult
Source
define(child : Pegmatite::Pattern | Nil)
Source
description
Source
dsl_name
Source
inspect(io)
Source