Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ScopeMb
- beginScope :: [ScopeMb] -> [ScopeMb]
- clearScope :: [ScopeMb] -> [ScopeMb]
- addVarToScope :: [ScopeMb] -> String -> Ast -> [ScopeMb]
- getVarInScope :: [ScopeMb] -> String -> Maybe Ast
- addVarsToScope :: [ScopeMb] -> [String] -> [Ast] -> [ScopeMb]
- updateVar :: [ScopeMb] -> String -> Ast -> [ScopeMb]
Documentation
Structure representing a member in a scope.
Can be a ScopeBegin
to mark the beginning of a scope or
a Variable
containing its name as a Ast
and its value as an Ast
beginScope :: [ScopeMb] -> [ScopeMb] Source #
Begin a new scope by adding a ScopeBegin
to the stack.
clearScope :: [ScopeMb] -> [ScopeMb] Source #
Clear the current scope