Portability | unportable |
---|---|
Stability | unstable |
Maintainer | Andrea Rossato <andrea.rossato@unitn.it> |
The CSL implementation
- data EvalState = EvalState {}
- data Environment = Env {}
- evalLayout :: Layout -> Bool -> [TermMap] -> [MacroMap] -> [Option] -> String -> Reference -> [Output]
- evalSorting :: [TermMap] -> [MacroMap] -> [Option] -> [Sort] -> Reference -> [Sorting]
- evalElements :: [Element] -> State EvalState [Output]
- evalElement :: Element -> State EvalState [Output]
- evalIfThen :: IfThen -> [IfThen] -> [Element] -> State EvalState [Output]
- evalNames :: [String] -> [Name] -> String -> State EvalState [Output]
- evalDate :: [DatePart] -> [String] -> State EvalState [Output]
- getTerm :: Bool -> Form -> String -> State EvalState String
- getStringVar :: String -> State EvalState String
- getDateVar :: String -> State EvalState [RefDate]
- getLocVar :: String -> State EvalState (String, String)
- getVar :: a -> (Value -> a) -> String -> State EvalState a
- getAgents :: String -> State EvalState [Agent]
- getFormattedValue :: String -> Form -> Formatting -> Value -> [Output]
- getStringValue :: Value -> String
- getOptionVal :: String -> [Option] -> String
- isOptionSet :: String -> [Option] -> Bool
- isVarSet :: String -> State EvalState Bool
- withRefMap :: (ReferenceMap -> a) -> State EvalState a
- formatNames :: Bool -> String -> [Agent] -> Name -> State EvalState [Output]
- formatName :: Bool -> Form -> Formatting -> NameFormatting -> Agent -> [Output]
- formatLabel :: Form -> Formatting -> Bool -> Bool -> String -> State EvalState [Output]
- formatDate :: String -> [TermMap] -> [DatePart] -> [RefDate] -> [Output]
- output :: Formatting -> String -> [Output]
- appendOutput :: Formatting -> [Output] -> [Output]
- outputList :: Formatting -> Delimiter -> [Output] -> [Output]
- cleanOutput :: [Output] -> [Output]
- addDelim :: String -> [Output] -> [Output]
- consumeVariable :: String -> State EvalState ()
- consuming :: State EvalState a -> State EvalState a
- when' :: Monad m => m Bool -> m [a] -> m [a]
- whenElse :: Monad m => m Bool -> m a -> m a -> m a
- concatMapM :: (Monad m, Functor m, Eq b) => (a -> m [b]) -> [a] -> m [b]
- formatVariable :: String -> String
- head' :: [a] -> [a]
- trace :: String -> State EvalState ()
Documentation
data Environment Source
evalLayout :: Layout -> Bool -> [TermMap] -> [MacroMap] -> [Option] -> String -> Reference -> [Output]Source
getTerm :: Bool -> Form -> String -> State EvalState StringSource
If the first parameter is True
the plural form will be retrieved.
getFormattedValue :: String -> Form -> Formatting -> Value -> [Output]Source
getStringValue :: Value -> StringSource
getOptionVal :: String -> [Option] -> StringSource
isOptionSet :: String -> [Option] -> BoolSource
withRefMap :: (ReferenceMap -> a) -> State EvalState aSource
formatName :: Bool -> Form -> Formatting -> NameFormatting -> Agent -> [Output]Source
Generate the Agent
s names applying et-al options, with all
possible permutations to disambiguate colliding citations.
formatLabel :: Form -> Formatting -> Bool -> Bool -> String -> State EvalState [Output]Source
output :: Formatting -> String -> [Output]Source
appendOutput :: Formatting -> [Output] -> [Output]Source
outputList :: Formatting -> Delimiter -> [Output] -> [Output]Source
cleanOutput :: [Output] -> [Output]Source
concatMapM :: (Monad m, Functor m, Eq b) => (a -> m [b]) -> [a] -> m [b]Source
formatVariable :: String -> StringSource