fortran-vars-0.4.0: Fortran memory model and other static analysis tools.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Fortran.Vars.BozConstant

Synopsis

Documentation

resolveBozConstant :: SymbolTable -> String -> ExpVal -> ExpVal Source #

Given SymbolTable, contextual symbol name and BOZ Constant (ExpVal constructed with Boz String), resolve BOZ Constant considering contextual symbol.

Currently, it only resolves BOZ Constants in context of INTEGER.

bozToInt :: Kind -> Boz -> ExpVal Source #

Resolve a BOZ constant as an INTEGER(k).

Works on arbitrary kinds, including non-standard, assuming that kind indicates size in bytes.

bozToInt1 :: Boz -> ExpVal Source #

Resolve a BOZ constant as an INTEGER(1).

bozToInt2 :: Boz -> ExpVal Source #

Resolve a BOZ constant as an INTEGER(2).

bozToInt4 :: Boz -> ExpVal Source #

Resolve a BOZ constant as an INTEGER(4).

bozToInt8 :: Boz -> ExpVal Source #

Resolve a BOZ constant as an INTEGER(8).