drasil-code-0.1.9.0: A framework for code and document generation for scientific software - Code SubPackage
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Drasil.Code.Imperative.ConceptMatch

Description

Contains functions related to the choice of concept matches.

Synopsis

Documentation

chooseConcept :: Choices -> State [Sentence] MatchedConceptMap Source #

Concretizes the ConceptMatchMap in Choices to a MatchedConceptMap. Currently we don't have any Choices that would prevent a CodeConcept from being mapped, so we just take the head of the list of CodeConcepts The ConceptMatchMap from choices is passed to chooseConcept' internally, this way any CodeConcept list can be matched to its appropiate UID.

conceptToGOOL :: OOProg r => CodeConcept -> SValue r Source #

Translates a CodeConcept into GOOL.