SwiftStructure

public class SwiftStructure : Generator

Generates a Swift structure that you can use a ParsingDecoder with to rapidly build an AST or IR

  • Generates a Swift struct for the supplied scope that could be used by a ParsingDecoder

    Declaration

    Swift

    public static func generate(for scope: STLR, grammar name: String, accessLevel: String) throws -> [Operation]

    Parameters

    scope

    The scope to use to generate

    Return Value

    A single TextFile containing the Swift source