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 moreDeclaration
Swift
public enum Cardinality
-
The nature of the node.
See moreDeclaration
Swift
public enum Kind
-
The determined data type
See moreDeclaration
Swift
public enum DataType
-
See moreNode
represents an element of the data structure and is the core of the AST derived.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