Pattern

io.github.edadma.recognizer.Recognizer.Pattern
trait Pattern

The core pattern type representing a pattern to match.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Alternative
class Clas
object Cut
object Fail
object Fence
class LookBehind
class Match
class NonStrict
object Nop
class Not
object Pointer
class Push
class Sequence
class Test
class Transform
Show all

Members list

Value members

Concrete methods

def |(that: Pattern): Pattern

Alternative operator: creates a pattern that matches either this pattern or another pattern.

Alternative operator: creates a pattern that matches either this pattern or another pattern.

Value parameters

that

the alternative pattern to try if this one fails

Attributes

Returns

a pattern matching either this pattern or that pattern

def ~(that: Pattern): Pattern

Sequence operator: creates a pattern that matches this pattern followed by another pattern.

Sequence operator: creates a pattern that matches this pattern followed by another pattern.

Value parameters

that

the pattern to match after this one

Attributes

Returns

a pattern matching this pattern followed by that pattern