class Pegmatite::Pattern::DynamicPop
Overview
Pattern::DynamicPop is used pop a dynamic match off the stack after matching,
such as to mark the end of a dynamic delimiter.
If the child pattern produces tokens, those tokens will be passed as-is.
Returns the result of the child pattern's parsing.
Defined in:
pegmatite/pattern/dynamic_pop.cr
Constructors
Instance Method Summary
Instance methods inherited from class Pegmatite::Pattern
_match(source, offset, state) : MatchResult
_match,
match(source, offset, state) : MatchResult
match
>>(other)
>>,
^(other)
^,
|(other)
|,
~
~,
dynamic_pop(label)
dynamic_pop,
dynamic_push(label)
dynamic_push,
maybe
maybe,
named(label, tokenize = true)
named,
repeat(min = 0, max = nil)
repeat,
repeat_exactly(times)
repeat_exactly,
then_eof
then_eof
Constructor Detail
def self.
new(child :
Pattern, label : Symbol)
#
Instance Method Detail