-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhtcc.cabal
More file actions
301 lines (294 loc) · 7.37 KB
/
Copy pathhtcc.cabal
File metadata and controls
301 lines (294 loc) · 7.37 KB
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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
cabal-version: 2.0
-- This file has been generated from package.yaml by hpack version 0.38.3.
--
-- see: https://github.com/sol/hpack
--
-- hash: 6898310968dcf001c66a93150d55c5e9f04e053e15793d6120855f7a339dca4b
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: falgon53@yahoo.co.jp
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.MegaparsecCompat
Htcc.Output
Htcc.WarningSuppression
Htcc.Parser
Htcc.Parser.AST
Htcc.Parser.AST.Core
Htcc.Parser.AST.DeduceKind
Htcc.Parser.AST.Type
Htcc.Parser.Combinators
Htcc.Parser.Combinators.BasicOperator
Htcc.Parser.Combinators.ConstExpr
Htcc.Parser.Combinators.Core
Htcc.Parser.Combinators.Decl
Htcc.Parser.Combinators.Decl.Declarator
Htcc.Parser.Combinators.Decl.Spec
Htcc.Parser.Combinators.GNUExtensions
Htcc.Parser.Combinators.Keywords
Htcc.Parser.Combinators.ParserType
Htcc.Parser.Combinators.Program
Htcc.Parser.Combinators.Type
Htcc.Parser.Combinators.Type.Core
Htcc.Parser.Combinators.Type.Utils
Htcc.Parser.Combinators.Utils
Htcc.Parser.Combinators.Var
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.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
autogen-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
, directory
, extra
, filepath
, megaparsec
, monad-finally
, monad-loops
, mono-traversable
, mtl
, natural-transformation
, optparse-applicative
, parsec
, parser-combinators
, prettyprinter
, prettyprinter-ansi-terminal
, safe
, split
, text
, transformers
, unix
, utf8-string
default-language: Haskell2010
executable htcc
main-is: Main.hs
other-modules:
Paths_htcc
autogen-modules:
Paths_htcc
hs-source-dirs:
app
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -O2
build-depends:
ansi-wl-pprint
, base >=4.7 && <5
, bytestring
, cond
, containers
, deepseq
, diagrams-contrib
, diagrams-lib
, diagrams-svg
, directory
, extra
, filepath
, htcc
, megaparsec
, monad-finally
, monad-loops
, mono-traversable
, mtl
, natural-transformation
, optparse-applicative
, parsec
, parser-combinators
, prettyprinter
, prettyprinter-ansi-terminal
, process
, safe
, split
, stm
, template-haskell
, text
, transformers
, unix
, utf8-string
default-language: Haskell2010
test-suite htcc-test
type: exitcode-stdio-1.0
main-is: Spec.hs
build-tool-depends:
htcc:htcc
other-modules:
Tests.CommandSelection
Tests.ComponentsTests
Tests.ComponentsTests.AsmOutput
Tests.ComponentsTests.CommandSelection
Tests.ComponentsTests.Parser.Combinators
Tests.SubProcTests
Tests.SubProcTests.AsmOutput
Tests.SubProcTests.LinkFuncRet
Tests.SubProcTests.LinkFuncStdOut
Tests.SubProcTests.StatementEqual
Tests.Utils
Paths_htcc
autogen-modules:
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
, diagrams-contrib
, diagrams-lib
, diagrams-svg
, directory
, extra
, filepath
, foldl
, hspec
, hspec-contrib
, hspec-core
, htcc
, megaparsec
, monad-finally
, monad-loops
, mono-traversable
, mtl
, natural-transformation
, optparse-applicative
, parsec
, parser-combinators
, prettyprinter
, prettyprinter-ansi-terminal
, process
, safe
, split
, text
, time
, transformers
, turtle
, unix
, utf8-string
default-language: Haskell2010
benchmark criterion
type: exitcode-stdio-1.0
main-is: bench/Criterion.hs
other-modules:
Paths_htcc
autogen-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
, directory
, extra
, filepath
, htcc
, megaparsec
, monad-finally
, monad-loops
, mono-traversable
, mtl
, natural-transformation
, optparse-applicative
, parsec
, parser-combinators
, prettyprinter
, prettyprinter-ansi-terminal
, safe
, split
, text
, transformers
, unix
, utf8-string
default-language: Haskell2010