Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions code/drasil-example/sglpend/app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ module Main (main) where

import GHC.IO.Encoding

import Drasil.Generator (gen, typeCheckSI, genDot,
import Drasil.Generator (gen, typeCheckSI, genCode, genDot,
DocSpec(DocSpec), DocType(SRS), Format(..), docChoices, dumpEverything)
import Drasil.SglPend.Body (srs, printSetting, fullSI)

import Drasil.SglPend.Choices (choices, code)

main :: IO()
main = do
setLocaleEncoding utf8
dumpEverything fullSI printSetting ".drasil/"
typeCheckSI fullSI
gen (DocSpec (docChoices SRS [HTML, TeX, Jupyter, MDBook]) "SglPend_SRS") srs printSetting
genCode choices code
genDot fullSI
26 changes: 26 additions & 0 deletions code/drasil-example/sglpend/lib/Drasil/SglPend/Choices.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module Drasil.SglPend.Choices where

import Language.Drasil.Code (Choices(..), AuxFile(ReadME), Comments(..),
ConstantStructure(Store), Lang(..), CodeSpec, defaultChoices, makeArchit,
makeConstraints, makeData, makeDocConfig, makeLogConfig, makeOptFeats,
ConstantRepr(Const), ConstraintBehaviour(Warning),
ImplementationType(Program), Modularity(Modular), Structure(..),
Verbosity(Quiet), Visibility(Hide), codeSpec)

import Drasil.SglPend.Body (fullSI)

code :: CodeSpec
code = codeSpec fullSI choices []

choices :: Choices
choices = defaultChoices {
lang = [Python, Cpp, CSharp, Java],
architecture = makeArchit Modular Program,
dataInfo = makeData Unbundled (Store Bundled) Const,
optFeats = makeOptFeats
(makeDocConfig [CommentFunc, CommentClass, CommentMod] Quiet Hide)
(makeLogConfig [] "log.txt")
[ReadME],
srsConstraints = makeConstraints Warning Warning,
extLibs = []
}
34 changes: 34 additions & 0 deletions code/stable/sglpend/src/cpp/Control.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 59 additions & 0 deletions code/stable/sglpend/src/cpp/InputParameters.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions code/stable/sglpend/src/cpp/InputParameters.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions code/stable/sglpend/src/cpp/Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions code/stable/sglpend/src/cpp/OutputFormat.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions code/stable/sglpend/src/cpp/OutputFormat.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions code/stable/sglpend/src/cpp/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions code/stable/sglpend/src/cpp/designLog.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading