Skip to content

Grammar_CallPattern

kareman edited this page Aug 13, 2020 · 4 revisions

Grammar.CallPattern

Calls another subpattern in a grammar.

public struct CallPattern:​ Pattern

Inheritance

Pattern

Properties

grammar

The grammar that contains the subpattern being called.

let grammar:​ Grammar<Input>

name

The name of the subpattern being called.

let name:​ String

description

var description:​ String

Methods

createInstructions(_:​)

@inlinable public func createInstructions(_ instructions:inout ContiguousArray<Instruction<Input>>)

Clone this wiki locally