Copyright | (c) roki 2019 |
---|---|
License | MIT |
Maintainer | falgon53@yahoo.co.jp |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Data types and type synonyms used during AST construction
Synopsis
- type ASTSuccess i = ([TokenLC i], ATree i, ConstructionData i)
- type ASTConstruction i = Either (ASTError i) (ASTSuccess i)
- type ASTs i = [ATree i]
- type ASTResult i = Either (ASTError i) (Warnings i, ASTs i, GlobalVars i, Literals i)
- type ASTState i r = CompilationState (ConstructionData i) [TokenLC i] i r
Documentation
type ASTSuccess i = ([TokenLC i], ATree i, ConstructionData i) Source #
The type to be used when the AST construction is successful
type ASTConstruction i = Either (ASTError i) (ASTSuccess i) Source #
Types used during AST construction
type ASTResult i = Either (ASTError i) (Warnings i, ASTs i, GlobalVars i, Literals i) Source #
A type that represents the result after AST construction. Quadraple of warning list, constructed abstract syntax tree list, global variable map, literal list.
type ASTState i r = CompilationState (ConstructionData i) [TokenLC i] i r Source #
The type synonym of ASTState