-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhtcc.cabal
244 lines (237 loc) · 5.99 KB
/
htcc.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.33.0.
--
-- see: https://github.com/sol/hpack
--
-- hash: 22bacaccc5bc8617817eb1c982386f1b7ce9a77e1928a9f47181e1dcd7a27d2a
name: htcc
version: 0.0.0.1
synopsis: The full scratch implementation of tiny C compiler (x86_64)
description: The full scratch implementation of tiny C compiler (x86_64).
This compiler outputs x86_64 assembly code from "general" C code.
.
It consists of:
.
* the lexical analyzer
* the parser that performs parsing with recursive descent and construction of abstract syntax trees (ASTs)
* the method that outputs x86_64 assembly code from ASTs
.
__This compiler is not practical purposes__, but focuses on implementation experiments.
.
For more information, please see the README on GitHub at <https://github.com/falgon/htcc#readme>.
category: Compiler
homepage: https://github.com/falgon/htcc#readme
bug-reports: https://github.com/falgon/htcc/issues
author: roki
maintainer: [email protected]
copyright: 2019 roki
license: MIT
license-file: LICENSE
build-type: Simple
extra-source-files:
README.md
ChangeLog.md
source-repository head
type: git
location: https://github.com/falgon/htcc
library
exposed-modules:
Htcc.Asm
Htcc.Asm.Generate
Htcc.Asm.Generate.Core
Htcc.Asm.Intrinsic
Htcc.Asm.Intrinsic.Operand
Htcc.Asm.Intrinsic.Register
Htcc.Asm.Intrinsic.Structure
Htcc.Asm.Intrinsic.Structure.Internal
Htcc.Asm.Intrinsic.Structure.Section.Data
Htcc.Asm.Intrinsic.Structure.Section.Text
Htcc.Asm.Intrinsic.Structure.Section.Text.Directive
Htcc.Asm.Intrinsic.Structure.Section.Text.Instruction
Htcc.Asm.Intrinsic.Structure.Section.Text.Operations
Htcc.CRules
Htcc.CRules.Char
Htcc.CRules.LexicalElements
Htcc.CRules.Preprocessor
Htcc.CRules.Preprocessor.Core
Htcc.CRules.Preprocessor.Punctuators
Htcc.CRules.Types
Htcc.CRules.Types.CType
Htcc.CRules.Types.StorageClass
Htcc.CRules.Types.TypeKind
Htcc.Parser
Htcc.Parser.AST
Htcc.Parser.AST.Core
Htcc.Parser.AST.DeduceKind
Htcc.Parser.AST.Type
Htcc.Parser.AST.Var
Htcc.Parser.AST.Var.Init
Htcc.Parser.ConstructionData
Htcc.Parser.ConstructionData.Core
Htcc.Parser.ConstructionData.Scope
Htcc.Parser.ConstructionData.Scope.Enumerator
Htcc.Parser.ConstructionData.Scope.Function
Htcc.Parser.ConstructionData.Scope.ManagedScope
Htcc.Parser.ConstructionData.Scope.Tag
Htcc.Parser.ConstructionData.Scope.Typedef
Htcc.Parser.ConstructionData.Scope.Utils
Htcc.Parser.ConstructionData.Scope.Var
Htcc.Parser.Parsing
Htcc.Parser.Parsing.Core
Htcc.Parser.Parsing.Global
Htcc.Parser.Parsing.Global.Function
Htcc.Parser.Parsing.Global.Var
Htcc.Parser.Parsing.StmtExpr
Htcc.Parser.Parsing.Type
Htcc.Parser.Parsing.Typedef
Htcc.Parser.Utils
Htcc.Parser.Utils.Core
Htcc.Tokenizer
Htcc.Tokenizer.Core
Htcc.Tokenizer.Token
Htcc.Utils
Htcc.Utils.Bool
Htcc.Utils.CompilationState
Htcc.Utils.List
Htcc.Utils.NaturalTransformations
Htcc.Utils.Print
Htcc.Utils.Text
Htcc.Utils.Tuple
Htcc.Visualizer
Htcc.Visualizer.Core
other-modules:
Paths_htcc
hs-source-dirs:
src
build-depends:
ansi-wl-pprint
, base >=4.7 && <5
, bytestring
, cond
, containers
, deepseq
, diagrams-contrib
, diagrams-lib
, diagrams-svg
, extra
, monad-finally
, monad-loops
, mono-traversable
, mtl
, natural-transformation
, optparse-applicative
, safe
, split
, text
, transformers
default-language: Haskell2010
executable htcc
main-is: Main.hs
other-modules:
Paths_htcc
hs-source-dirs:
app
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Werror -O2
build-depends:
ansi-wl-pprint
, base >=4.7 && <5
, bytestring
, cond
, containers
, deepseq
, diagrams-contrib
, diagrams-lib
, diagrams-svg
, directory
, extra
, htcc
, monad-finally
, monad-loops
, mono-traversable
, mtl
, natural-transformation
, optparse-applicative
, safe
, split
, text
, transformers
default-language: Haskell2010
test-suite htcc-test
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules:
Tests.SubProcTests
Tests.Test1
Tests.Test2
Tests.Test3
Tests.Utils
Paths_htcc
hs-source-dirs:
test
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -O2
build-depends:
HUnit
, ansi-wl-pprint
, base >=4.7 && <5
, bytestring
, cond
, containers
, deepseq
, dhall-json
, dhall-yaml
, diagrams-contrib
, diagrams-lib
, diagrams-svg
, directory
, extra
, filepath
, foldl
, hspec
, hspec-contrib
, hspec-core
, htcc
, monad-finally
, monad-loops
, mono-traversable
, mtl
, natural-transformation
, optparse-applicative
, process
, safe
, split
, text
, time
, transformers
, turtle
, utf8-string
default-language: Haskell2010
benchmark criterion
type: exitcode-stdio-1.0
main-is: bench/Criterion.hs
other-modules:
Paths_htcc
ghc-options: -O2
build-depends:
ansi-wl-pprint
, base >=4.7 && <5
, bytestring
, cond
, containers
, criterion
, deepseq
, diagrams-contrib
, diagrams-lib
, diagrams-svg
, extra
, htcc
, monad-finally
, monad-loops
, mono-traversable
, mtl
, natural-transformation
, optparse-applicative
, safe
, split
, text
, transformers
default-language: Haskell2010