-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.yaml
202 lines (180 loc) · 4.47 KB
/
package.yaml
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
name: yapb
version: 0.2.8
github: "kwanghoon/yapb"
license: BSD3
author: "Kwanghoon Choi"
maintainer: "[email protected]"
copyright: "2020-2023 Kwanghoon Choi"
extra-source-files:
- README.md
- ChangeLog.md
# Metadata used when publishing your package
synopsis: Yet Another Parser Builder (YAPB)
category: parser builder
# To avoid duplicated efforts in documentation and dealing with the
# complications of embedding Haddock markup inside cabal files, it is
# common to point users to the README.md file.
description: A programmable LALR(1) parser builder system. Please see the README on GitHub at <https://github.com/kwanghoon/yapb#readme>
dependencies:
- base >= 4.7 && < 5
- hspec
- transformers
- mtl
- deepseq >= 1.4.4.0
- timeit >= 2.0
- containers
# --------------------------------------------------
# -- Main library: YAPB (Yet Another Parser Builder)
# --------------------------------------------------
library:
source-dirs:
- src/gentable/
- src/parserlib/
- src/parserlib/algo
- src/parserlib/analyze
- src/syncomplib
- src/util/
- src/config/
exposed-modules:
- CFG
- Attrs
- CmdArgs
- ParserTable
- GenLRParserTable
- SampleGrammar
- CodeGenC
- TokenInterface
- Terminal
- CommonParserUtil
- SaveProdRules
- AutomatonType
- LoadAutomaton
- ReadGrammar
- MaxRhsLen
- EmacsServer
- SynCompInterface
- Config
- SynCompAlgoUtil
- SynCompAlgorithm
- AVL
- ParserTime
dependencies:
- regex-tdfa >= 1.3.1 && < 1.4
- hashable >= 1.3.5.0 && <= 1.4.2.0
- directory >= 1.3.3 && < 1.4
- process >= 1.6.5 && < 1.7
- network >= 3.1.1 && < 3.2 # for syntax completion library
- bytestring >= 0.10.12.1 && <= 0.11.4.0
executables:
# ----------------------------------------
# -- Utility1: A wrapper interface to YAPB
# ----------------------------------------
yapb-exe:
main: Main.hs
source-dirs: app/yapb
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
- -O2
dependencies:
- yapb
# ------------------------------------------------------------------------------------
# -- Utility2: A grammar converter utility of a readable form into a Haskell data form
# -------------------------------------------------------------------------------------
conv-exe:
main: Main.hs
source-dirs: app/conv
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- yapb
# ----------------------------------------
# -- Utiliyt3: A syntax completion server
# ----------------------------------------
syncomp-exe:
main: Main.hs
source-dirs:
- app/syntaxcompletion
- app/syntaxcompletion/ast
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- regex-tdfa
- yapb
# ----------------------------------------
# -- Utiliyt4: filtering after collecting
# ----------------------------------------
succparsed-exe:
main: Main.hs
source-dirs:
- util
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- regex-tdfa
- yapb
# ---------------------------------
# -- Example1: An arithmetic parser
# ---------------------------------
parser-exe:
main: Main.hs
source-dirs:
- app/parser
- app/parser/ast
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- regex-tdfa
- yapb
# ---------------------------------
# -- Example2: An ambiguous parser
# ---------------------------------
ambiguous-exe:
main: Main.hs
source-dirs:
- app/ambiguous
- app/ambiguous/ast
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- regex-tdfa
- yapb
# ---------------------------------
# -- Example3: An error handling
# ---------------------------------
error-exe:
main: Main.hs
source-dirs:
- app/error
- app/error/ast
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- regex-tdfa
- yapb
tests:
yapb-test:
main: Spec.hs
source-dirs:
- test
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
- -O2
dependencies:
- yapb
- process