class

Pegmatite::Pattern::DynamicMatch

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

Pattern::DynamicMatch is used to match against a stored dynamic match value and consume the string that matches the stored dynamic match.

Parsing will fail if the bytes in the stream don't exactly match the dynamic match. Otherwise, the pattern succeeds, consuming the matched bytes.

Constructors

new(label : Symbol)
Source

Instance methods

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