htcc-0.0.0.1: The full scratch implementation of tiny C compiler (x86_64)
Copyright(c) roki 2019
LicenseMIT
Maintainerfalgon53@yahoo.co.jp
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Htcc.Parser.AST.Type

Description

Data types and type synonyms used during AST construction

Synopsis

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 ASTs i = [ATree i] Source #

The type of AST list

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