Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Semantic
Documentation
analyze :: Program -> Either [CompileError] (ASTRoot, SemanticInfo) Source #
data SymbolTable Source #
Constructors
SymbolTable | |
Fields
|
Instances
data SemanticInfo Source #
Constructors
SemanticInfo | |
Fields
|
Instances
Generic SemanticInfo Source # | |
Show SemanticInfo Source # | |
Defined in Semantic Methods showsPrec :: Int -> SemanticInfo -> ShowS # show :: SemanticInfo -> String # showList :: [SemanticInfo] -> ShowS # | |
type Rep SemanticInfo Source # | |
Defined in Semantic type Rep SemanticInfo = D1 ('MetaData "SemanticInfo" "Semantic" "decaf-0.1.0.0-GF5ZfPyXbr16gB58O7mLnT" 'False) (C1 ('MetaCons "SemanticInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "symbolTables") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map ScopeID SymbolTable)) :*: S1 ('MetaSel ('Just "symbolWrites") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Map ScopeID (Set (ScopeID, Name)))))) |
Constructors
RootBlock | |
IfBlock | |
ForBlock | |
WhileBlock | |
MethodBlock |
lookupLocalVariableFromST :: Name -> SymbolTable -> Maybe (Either Argument FieldDecl) Source #
lookupLocalMethodFromST :: Name -> SymbolTable -> Maybe (Either ImportDecl MethodDecl) Source #