Skip to content

Grammar_CallPattern

kareman edited this page Jul 1, 2020 · 4 revisions

Grammar.CallPattern

Calls another subpattern in a grammar.

public struct CallPattern: Pattern

Inheritance

Pattern

Initializers

init(grammar:name:)

@inlinable init(grammar: Grammar, name: String)

Properties

grammar

The grammar that contains the subpattern being called.

let grammar: Grammar

name

The name of the subpattern being called.

let name: String

description

var description: String

Methods

createInstructions(_:)

@inlinable public func createInstructions(_ instructions: inout Instructions)
Clone this wiki locally