module Pegmatite::DSL::Methods

Overview

These Methods are defined to be included in all Pattern instances, for ease of combining and composing new Patterns.

Direct including types

Defined in:

pegmatite/dsl.cr

Instance Method Summary

Instance Method Detail

def >>(other) #

[View source]
def ^(other) #

[View source]
def |(other) #

[View source]
def ~ #

[View source]
def dynamic_pop(label) #

[View source]
def dynamic_push(label) #

[View source]
def maybe #

[View source]
def named(label, tokenize = true) #

[View source]
def repeat(min = 0, max = nil) #

[View source]
def repeat_exactly(times) #

[View source]
def then_eof #

[View source]