Type Aliases

The following type aliases are available globally.

  • Depricated, use Grammar

    Declaration

    Swift

    @available(*, deprecated, message: "Parser has been depricated the rules used at initialization can be directly used as a Grammar. e.g. let parser = Parser(grammar:rules﹚ becomes let parser = rules")
    public typealias Parser = Grammar
  • Depricated, use Grammar

    Declaration

    Swift

    @available(*, deprecated, message: "Replace with Grammar and use the rules property of Grammar instead of a grammar property of Language")
    public typealias Language = Grammar
  • 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