Type Aliases
The following type aliases are available globally.
-
The elements generated during streaming. These are very light-weight and are the same as those used as an intermediate representation when building an
AbstractSyntaxTree
Declaration
Swift
public typealias StreamedToken = AbstractSyntaxTreeConstructor.IntermediateRepresentationNode
-
A dictionary of annotations and their values
Declaration
Swift
public typealias RuleAnnotations = [RuleAnnotation : RuleAnnotationValue]
-
A matching closure should perform the test using the lexer, create any nodes it wishes in the IR. The wrapping function has the responsbility to cleaning up on failure.
Declaration
Swift
public typealias Test = (LexicalAnalyzer, IntermediateRepresentation) throws -> Void