| ||||||||||||||||||||||||
| ||||||||||||||||||||||||
Synopsis | ||||||||||||||||||||||||
Documentation | ||||||||||||||||||||||||
data ProgState | ||||||||||||||||||||||||
| ||||||||||||||||||||||||
type ProgStateRef = IORef ProgState | ||||||||||||||||||||||||
emptyProgState :: Params -> ProgState | ||||||||||||||||||||||||
The program state when you start GenI for the very first time | ||||||||||||||||||||||||
showRealisations :: [String] -> String | ||||||||||||||||||||||||
Show the sentences produced by the generator, in a relatively compact form | ||||||||||||||||||||||||
groupAndCount :: (Eq a, Ord a) => [a] -> [(a, Int)] | ||||||||||||||||||||||||
initGeni :: ProgStateRef -> IO Input | ||||||||||||||||||||||||
runGeni :: ProgStateRef -> Builder st it Params -> IO ([GeniResult], Statistics, st) | ||||||||||||||||||||||||
runGeniWithSelector :: ProgStateRef -> Selector -> Builder st it Params -> IO ([GeniResult], Statistics, st) | ||||||||||||||||||||||||
getTraces :: ProgState -> String -> [String] | ||||||||||||||||||||||||
type GeniResult = (String, Derivation) | ||||||||||||||||||||||||
type Selector = ProgState -> IO ([TagElem], [ILexEntry]) | ||||||||||||||||||||||||
Only used for instances of GenI where the grammar is compiled directly into GenI. | ||||||||||||||||||||||||
loadEverything :: ProgStateRef -> IO () | ||||||||||||||||||||||||
loadLexicon :: ProgStateRef -> IO () | ||||||||||||||||||||||||
loadGeniMacros :: ProgStateRef -> IO () | ||||||||||||||||||||||||
loadTestSuite :: ProgStateRef -> IO () | ||||||||||||||||||||||||
Stores the results in the tcase and tsuite fields | ||||||||||||||||||||||||
loadTargetSemStr :: ProgStateRef -> String -> IO () | ||||||||||||||||||||||||
Updates program state the same way as loadTestSuite | ||||||||||||||||||||||||
combine :: Macros -> Lexicon -> Tags | ||||||||||||||||||||||||
chooseLexCand :: Lexicon -> Sem -> [ILexEntry] | ||||||||||||||||||||||||
Select and returns the set of entries from the lexicon whose semantics subsumes the input semantics. | ||||||||||||||||||||||||
Produced by Haddock version 0.8 |