class

Pegmatite::Pattern::DynamicPush

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

Pattern::DynamicPush is used to dynamically push a dynamic match onto the stack, usually for the purposes of dynamically constraining the scope of a pattern.

If the child pattern produces tokens, those tokens will be passed as-is.

Returns the result of the child pattern's parsing.

Constructors

new(child : Pattern, label : Symbol)
Source

Instance methods

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