-
Notifications
You must be signed in to change notification settings - Fork 1
/
GLaDOS2023.cabal
148 lines (134 loc) · 3.72 KB
/
GLaDOS2023.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
cabal-version: 2.4
name: GLaDOS2023
version: 0.2.0.0
author: Nydragon
extra-source-files:
CHANGELOG.md
README.md
--
-- Compilation
--
library compilation-lib
default-language: Haskell2010
build-depends: base >= 4.14.1.0, containers >= 0.5.10.2, shared-lib
hs-source-dirs: libraries/compilation-lib
ghc-options: -Wall -debug
exposed-modules:
Parsing.Args,
Parsing.Ast,
Parsing.Cpt,
Parsing.Infix,
Parsing.Token,
Parsing.TokenType,
Compilation.Utils,
Compilation.Compile,
Compilation.CompilationError,
Compilation.Registry,
Compilation.RetVal
-- Compiler
executable glados
default-language: Haskell2010
hs-source-dirs: compiler unit-tests
ghc-options: -Wall -debug
build-depends: base >= 4.14.1.0,
compilation-lib,
shared-lib,
-- Testing deps are here for vscode highlighting purposes
tasty >= 1.4.3,
tasty-discover >= 5.0.0,
tasty-hunit >= 0.10.0.3,
containers >= 0.5.10.2
main-is: Main.hs
--
-- Execution
--
library exec-lib
default-language: Haskell2010
hs-source-dirs: libraries/exec-lib
build-depends: base >= 4.14.1.0, shared-lib, containers
ghc-options: -Wall
exposed-modules:
Parser.ReadFile,
Exec.InferType,
Exec.Builtins,
Exec.Infer,
Exec.Instructions,
Exec.RuntimeException,
Exec.Utils,
Exec
executable runner
default-language: Haskell2010
hs-source-dirs: runner
build-depends: base >= 4.14.1.0, exec-lib
main-is: Main.hs
--
-- Shared
--
library shared-lib
default-language: Haskell2010
build-depends: base >= 4.14.1.0, containers >= 0.5.10.2
hs-source-dirs: libraries/shared-lib
ghc-options: -Wall
exposed-modules:
Instruction,
FunctionBlock,
Utils
--
-- Interactive
--
executable sun-tzu
default-language: Haskell2010
build-depends: base >= 4.14.1.0,
containers,
shared-lib,
compilation-lib,
exec-lib
hs-source-dirs: interactive
main-is: Main.hs
ghc-options: -Wall
other-modules:
Utils
--
-- Tests
--
test-suite unit-tests
default-language: Haskell2010
hs-source-dirs: tests/unit-tests
build-depends: base >=4.14.1.0,
tasty >= 1.4.3,
tasty-discover >= 5.0.0,
tasty-hunit >= 0.10.0.3,
containers >=0.5.10.2,
exec-lib,
compilation-lib,
shared-lib
main-is: TestMain.hs
type: exitcode-stdio-1.0
other-modules:
CompilationLib.Parser.ArgsTests,
CompilationLib.Parser.TokenTests,
CompilationLib.Parser.CptTests,
CompilationLib.Parser.AstTests,
CompilationLib.Parser.InfixTests,
ExecLib.Exec.Infer,
ExecLib.Exec.Instructions,
ExecLib.Exec.Utils,
ExecLib.Parser.ReadFile,
CompilationLib
ExecLib
test-suite integration-tests
default-language: Haskell2010
hs-source-dirs: tests/integration-tests
build-depends: base >=4.14.1.0,
ansi-terminal >= 0.11.3,
process >= 1.6.8.0,
filepath >= 1.4.2.1,
directory >= 1.3.3.0,
exitcode >= 0.1.0.0,
exec-lib,
compilation-lib
main-is: Main.hs
type: exitcode-stdio-1.0
other-modules:
Print,
Test