class

Pegmatite::Pattern::Sequence

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

Pattern::Sequence is used to specify a consecutive sequence of patterns.

Parsing will fail if any child pattern fails, returning that failure result. Otherwise, succeeds and consumes all bytes from all child patterns.

Constructors

new(children : Array(Pegmatite::Pattern) = [] of Pattern)
Source

Instance methods

>>(other)

Override this DSL operator to accrue into the existing sequence.

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