sutori-0.2.4: Sutori language compiler

Safe HaskellSafe
LanguageHaskell2010

Sutori.Parser.Symbols

Description

 

Synopsis

Documentation

findTypeID :: SutType -> SutMonad SutTypeID Source #

Finds the existent typeID or inserts the type and gets the new ID

findPerson :: SutID -> SutMonad SutID Source #

Checks if the given Person already exists

findFunctionID :: SutID -> SutMonad SutID Source #

Checks if the given function already exists, returns the SutID

findFunction :: SutID -> SutMonad (Maybe SymFunction) Source #

Checks if the given function already exists, returns the SutSymbol, if any

findVariable :: SutID -> SutMonad SutExpression Source #

Checks if the given variable already exists, returns the SutID wrapped as a SutExpression

lookupInScope :: SutSymbol a => (SutID -> SymTable -> [a]) -> SutID -> SutMonad [a] Source #

Checks the living scopes for the symbols with given SutID

inScope :: SutSymbol a => [a] -> SutMonad [a] Source #

Crosses the living scopes with the given SutSymbols

Uses the fact the both lists are ordered in decreasing order of SutID