GrammarStructure

public class GrammarStructure

Undocumented

  • The cardinality of the node, with fundamentally four values optional (0 or 1), one, or many (optional or not)

    See more

    Declaration

    Swift

    public enum Cardinality
  • The nature of the node.

    See more

    Declaration

    Swift

    public enum Kind
  • The determined data type

    See more

    Declaration

    Swift

    public enum DataType
  • Node represents an element of the data structure and is the core of the AST derived.

    See more

    Declaration

    Swift

    public class Node
  • The generated data structure

    Declaration

    Swift

    public var structure: Node
  • Parses the AST and infers the fundamental data structure from it. This can subsequently be extended to generate the parsed input data structure in any language.

    Declaration

    Swift

    public init(for scope: Scope, accessLevel: String)

    Parameters

    scope

    The AST being assesed

    accessLevel

    The desired access level which should be specified in the target language