Debian Codegraph @

mlyacc/src/yacc.lex.sml.boot

raw
1 (*#line 62.10 "yacc.lex"*)
2 functor LexMLYACC(structure Tokens : Mlyacc_TOKENS
3 structure Hdr : HEADER (* = Header *)
4 where type prec = Header.prec
5 and type inputSource = Header.inputSource) : ARG_LEXER
6 (*#line 6.1 "yacc.lex.sml"*)
7 =
8 struct
9 structure UserDeclarations =
10 struct
11 (*#line 1.1 "yacc.lex"*)(* Modified by Vesa Karvonen on 2007-12-18.
12 * Create line directives in output.
13 *)
14 (* ML-Yacc Parser Generator (c) 1989 Andrew W. Appel, David R. Tarditi
15
16 yacc.lex: Lexer specification
17 *)
18
19 structure Tokens = Tokens
20 type svalue = Tokens.svalue
21 type pos = Header.pos
22 type ('a,'b) token = ('a,'b) Tokens.token
23 type lexresult = (svalue,pos) token
24
25 type lexarg = Hdr.inputSource
26 type arg = lexarg
27
28 open Tokens
29 val error = Hdr.error
30 val text = Hdr.text
31
32 val pcount = ref 0
33 val commentLevel = ref 0
34 val actionstart = ref {line = 1, col = 0}
35
36 fun linePos () = {line = !(#line Hdr.pos), col = 0}
37 fun pos pos = {line = !(#line Hdr.pos), col = pos - !(#start Hdr.pos)}
38
39 val eof = fn i => (if (!pcount)>0 then
40 error i (!actionstart)
41 " eof encountered in action beginning here !"
42 else (); EOF(linePos (), linePos ()))
43
44 val Add = fn s => (text := s::(!text))
45
46
47 local val dict = [("%prec",PREC_TAG),("%term",TERM),
48 ("%nonterm",NONTERM), ("%eop",PERCENT_EOP),("%start",START),
49 ("%prefer",PREFER),("%subst",SUBST),("%change",CHANGE),
50 ("%keyword",KEYWORD),("%name",NAME),
51 ("%verbose",VERBOSE), ("%nodefault",NODEFAULT),
52 ("%value",VALUE), ("%noshift",NOSHIFT),
53 ("%header",PERCENT_HEADER),("%pure",PERCENT_PURE),
54 ("%token_sig_info",PERCENT_TOKEN_SIG_INFO),
55 ("%arg",PERCENT_ARG),
56 ("%pos",PERCENT_POS)]
57 in
58 fun lookup (s,left,right) = let
59 fun f ((a,d)::b) = if a=s then d(left,right) else f b
60 | f nil = UNKNOWN(s,left,right)
61 in
62 f dict
63 end
64 end
65
66 fun inc (ri as ref i) = (ri := i+1)
67 fun dec (ri as ref i) = (ri := i-1)
68
69 fun incLineNum pos = (inc (#line Hdr.pos) ; #start Hdr.pos := pos)
70
71 (*#line 71.1 "yacc.lex.sml"*)
72 end (* end of user routines *)
73 exception LexError (* raised if illegal leaf action tried *)
74 structure Internal =
75 struct
76
77 datatype yyfinstate = N of int
78 type statedata = {fin : yyfinstate list, trans: string}
79 (* transition & final state table *)
80 val tab = let
81 val s = [
82 (0,
83 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
84 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
85 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
86 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
87 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
88 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
89 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
90 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
91 \\000"
92 ),
93 (1,
94 "\015\015\015\015\015\015\015\015\015\015\022\015\015\021\015\015\
95 \\015\015\015\015\015\015\015\015\015\015\015\015\015\015\015\015\
96 \\015\015\015\015\015\019\015\015\017\015\015\015\015\015\015\015\
97 \\015\015\015\015\015\015\015\015\015\015\015\015\015\015\015\015\
98 \\015\015\015\015\015\015\015\015\015\015\015\015\015\015\015\015\
99 \\015\015\015\015\015\015\015\015\015\015\015\015\015\015\015\015\
100 \\015\015\015\015\015\015\015\015\015\015\015\015\015\015\015\015\
101 \\015\015\015\015\015\015\015\015\015\015\015\015\015\015\015\015\
102 \\015"
103 ),
104 (3,
105 "\023\023\023\023\023\023\023\023\023\066\069\023\023\068\023\023\
106 \\023\023\023\023\023\023\023\023\023\023\023\023\023\023\023\023\
107 \\066\023\023\023\023\046\023\044\042\023\041\023\040\038\023\023\
108 \\036\036\036\036\036\036\036\036\036\036\035\023\023\023\023\023\
109 \\023\027\027\027\027\027\027\027\027\027\027\027\027\027\027\027\
110 \\027\027\027\027\027\027\027\027\027\027\027\023\023\023\023\023\
111 \\023\027\027\027\027\027\032\027\027\027\027\027\027\027\027\030\
112 \\027\027\027\027\027\027\027\027\027\027\027\026\025\024\023\023\
113 \\023"
114 ),
115 (5,
116 "\070\070\070\070\070\070\070\070\070\070\022\070\070\075\070\070\
117 \\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\
118 \\070\070\074\070\070\070\070\070\072\071\070\070\070\070\070\070\
119 \\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\
120 \\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\
121 \\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\
122 \\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\
123 \\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\
124 \\070"
125 ),
126 (7,
127 "\076\076\076\076\076\076\076\076\076\078\022\076\076\080\076\076\
128 \\076\076\076\076\076\076\076\076\076\076\076\076\076\076\076\076\
129 \\078\076\076\076\076\076\076\076\076\076\076\076\076\076\076\076\
130 \\076\076\076\076\076\076\076\076\076\076\076\076\076\076\076\076\
131 \\076\076\076\076\076\076\076\076\076\076\076\076\076\076\076\076\
132 \\076\076\076\076\076\076\076\076\076\076\076\076\077\076\076\076\
133 \\076\076\076\076\076\076\076\076\076\076\076\076\076\076\076\076\
134 \\076\076\076\076\076\076\076\076\076\076\076\076\076\076\076\076\
135 \\076"
136 ),
137 (9,
138 "\081\081\081\081\081\081\081\081\081\081\022\081\081\075\081\081\
139 \\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\
140 \\081\081\081\081\081\081\081\081\085\084\082\081\081\081\081\081\
141 \\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\
142 \\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\
143 \\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\
144 \\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\
145 \\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\
146 \\081"
147 ),
148 (11,
149 "\087\087\087\087\087\087\087\087\087\087\095\087\087\094\087\087\
150 \\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\
151 \\087\087\093\087\087\087\087\087\087\087\087\087\087\087\087\087\
152 \\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\
153 \\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\
154 \\087\087\087\087\087\087\087\087\087\087\087\087\088\087\087\087\
155 \\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\
156 \\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\
157 \\087"
158 ),
159 (13,
160 "\096\096\096\096\096\096\096\096\096\096\022\096\096\075\096\096\
161 \\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\
162 \\096\096\096\096\096\096\096\096\100\099\097\096\096\096\096\096\
163 \\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\
164 \\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\
165 \\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\
166 \\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\
167 \\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\
168 \\096"
169 ),
170 (15,
171 "\016\016\016\016\016\016\016\016\016\016\000\016\016\000\016\016\
172 \\016\016\016\016\016\016\016\016\016\016\016\016\016\016\016\016\
173 \\016\016\016\016\016\000\016\016\000\016\016\016\016\016\016\016\
174 \\016\016\016\016\016\016\016\016\016\016\016\016\016\016\016\016\
175 \\016\016\016\016\016\016\016\016\016\016\016\016\016\016\016\016\
176 \\016\016\016\016\016\016\016\016\016\016\016\016\016\016\016\016\
177 \\016\016\016\016\016\016\016\016\016\016\016\016\016\016\016\016\
178 \\016\016\016\016\016\016\016\016\016\016\016\016\016\016\016\016\
179 \\016"
180 ),
181 (17,
182 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
183 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
184 \\000\000\000\000\000\000\000\000\000\000\018\000\000\000\000\000\
185 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
186 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
187 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
188 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
189 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
190 \\000"
191 ),
192 (19,
193 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
194 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
195 \\000\000\000\000\000\020\000\000\000\000\000\000\000\000\000\000\
196 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
197 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
198 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
199 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
200 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
201 \\000"
202 ),
203 (21,
204 "\000\000\000\000\000\000\000\000\000\000\022\000\000\000\000\000\
205 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
206 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
207 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
208 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
209 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
210 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
211 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
212 \\000"
213 ),
214 (27,
215 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
216 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
217 \\000\000\000\000\000\000\000\028\000\000\000\000\000\000\029\000\
218 \\028\028\028\028\028\028\028\028\028\028\000\000\000\000\000\000\
219 \\000\028\028\028\028\028\028\028\028\028\028\028\028\028\028\028\
220 \\028\028\028\028\028\028\028\028\028\028\028\000\000\000\000\028\
221 \\000\028\028\028\028\028\028\028\028\028\028\028\028\028\028\028\
222 \\028\028\028\028\028\028\028\028\028\028\028\000\000\000\000\000\
223 \\000"
224 ),
225 (30,
226 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
227 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
228 \\000\000\000\000\000\000\000\028\000\000\000\000\000\000\029\000\
229 \\028\028\028\028\028\028\028\028\028\028\000\000\000\000\000\000\
230 \\000\028\028\028\028\028\028\028\028\028\028\028\028\028\028\028\
231 \\028\028\028\028\028\028\028\028\028\028\028\000\000\000\000\028\
232 \\000\028\028\028\028\028\031\028\028\028\028\028\028\028\028\028\
233 \\028\028\028\028\028\028\028\028\028\028\028\000\000\000\000\000\
234 \\000"
235 ),
236 (32,
237 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
238 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
239 \\000\000\000\000\000\000\000\028\000\000\000\000\000\000\029\000\
240 \\028\028\028\028\028\028\028\028\028\028\000\000\000\000\000\000\
241 \\000\028\028\028\028\028\028\028\028\028\028\028\028\028\028\028\
242 \\028\028\028\028\028\028\028\028\028\028\028\000\000\000\000\028\
243 \\000\028\028\028\028\028\028\028\028\028\028\028\028\028\028\033\
244 \\028\028\028\028\028\028\028\028\028\028\028\000\000\000\000\000\
245 \\000"
246 ),
247 (33,
248 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
249 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
250 \\000\000\000\000\000\000\000\028\000\000\000\000\000\000\029\000\
251 \\028\028\028\028\028\028\028\028\028\028\000\000\000\000\000\000\
252 \\000\028\028\028\028\028\028\028\028\028\028\028\028\028\028\028\
253 \\028\028\028\028\028\028\028\028\028\028\028\000\000\000\000\028\
254 \\000\028\028\028\028\028\028\028\028\028\028\028\028\028\028\028\
255 \\028\028\034\028\028\028\028\028\028\028\028\000\000\000\000\000\
256 \\000"
257 ),
258 (36,
259 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
260 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
261 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
262 \\037\037\037\037\037\037\037\037\037\037\000\000\000\000\000\000\
263 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
264 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
265 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
266 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
267 \\000"
268 ),
269 (38,
270 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
271 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
272 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
273 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\039\000\
274 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
275 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
276 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
277 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
278 \\000"
279 ),
280 (42,
281 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
282 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
283 \\000\000\000\000\000\000\000\000\000\000\043\000\000\000\000\000\
284 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
285 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
286 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
287 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
288 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
289 \\000"
290 ),
291 (44,
292 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
293 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
294 \\000\000\000\000\000\000\000\045\000\000\000\000\000\000\000\000\
295 \\045\045\045\045\045\045\045\045\045\045\000\000\000\000\000\000\
296 \\000\045\045\045\045\045\045\045\045\045\045\045\045\045\045\045\
297 \\045\045\045\045\045\045\045\045\045\045\045\000\000\000\000\045\
298 \\000\045\045\045\045\045\045\045\045\045\045\045\045\045\045\045\
299 \\045\045\045\045\045\045\045\045\045\045\045\000\000\000\000\000\
300 \\000"
301 ),
302 (46,
303 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
304 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
305 \\000\000\000\000\000\065\000\000\000\000\000\000\000\000\000\000\
306 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
307 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
308 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\047\
309 \\000\047\047\047\047\047\047\047\047\047\047\047\061\047\053\047\
310 \\047\047\048\047\047\047\047\047\047\047\047\000\000\000\000\000\
311 \\000"
312 ),
313 (47,
314 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
315 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
316 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
317 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
318 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
319 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\047\
320 \\000\047\047\047\047\047\047\047\047\047\047\047\047\047\047\047\
321 \\047\047\047\047\047\047\047\047\047\047\047\000\000\000\000\000\
322 \\000"
323 ),
324 (48,
325 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
326 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
327 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
328 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
329 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
330 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\047\
331 \\000\047\047\047\047\047\047\047\047\049\047\047\047\047\047\047\
332 \\047\047\047\047\047\047\047\047\047\047\047\000\000\000\000\000\
333 \\000"
334 ),
335 (49,
336 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
337 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
338 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
339 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
340 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
341 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\047\
342 \\000\047\047\047\047\047\047\050\047\047\047\047\047\047\047\047\
343 \\047\047\047\047\047\047\047\047\047\047\047\000\000\000\000\000\
344 \\000"
345 ),
346 (50,
347 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
348 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
349 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
350 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
351 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
352 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\047\
353 \\000\047\047\047\047\047\047\047\051\047\047\047\047\047\047\047\
354 \\047\047\047\047\047\047\047\047\047\047\047\000\000\000\000\000\
355 \\000"
356 ),
357 (51,
358 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
359 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
360 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
361 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
362 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
363 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\047\
364 \\000\047\047\047\047\047\047\047\047\047\047\047\047\047\047\047\
365 \\047\047\047\047\052\047\047\047\047\047\047\000\000\000\000\000\
366 \\000"
367 ),
368 (53,
369 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
370 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
371 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
372 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
373 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
374 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\047\
375 \\000\047\047\047\047\047\047\047\047\047\047\047\047\047\047\054\
376 \\047\047\047\047\047\047\047\047\047\047\047\000\000\000\000\000\
377 \\000"
378 ),
379 (54,
380 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
381 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
382 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
383 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
384 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
385 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\047\
386 \\000\047\047\047\047\047\047\047\047\047\047\047\047\047\055\047\
387 \\047\047\047\047\047\047\047\047\047\047\047\000\000\000\000\000\
388 \\000"
389 ),
390 (55,
391 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
392 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
393 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
394 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
395 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
396 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\047\
397 \\000\056\047\047\047\047\047\047\047\047\047\047\047\047\047\047\
398 \\047\047\047\047\047\047\047\047\047\047\047\000\000\000\000\000\
399 \\000"
400 ),
401 (56,
402 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
403 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
404 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
405 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
406 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
407 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\047\
408 \\000\047\047\047\047\047\047\047\047\047\047\047\047\047\047\047\
409 \\047\047\047\057\047\047\047\047\047\047\047\000\000\000\000\000\
410 \\000"
411 ),
412 (57,
413 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
414 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
415 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
416 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
417 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
418 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\047\
419 \\000\047\047\047\047\047\047\047\047\047\047\047\047\047\047\047\
420 \\047\047\047\058\047\047\047\047\047\047\047\000\000\000\000\000\
421 \\000"
422 ),
423 (58,
424 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
425 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
426 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
427 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
428 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
429 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\047\
430 \\000\047\047\047\047\047\047\047\047\047\047\047\047\047\047\059\
431 \\047\047\047\047\047\047\047\047\047\047\047\000\000\000\000\000\
432 \\000"
433 ),
434 (59,
435 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
436 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
437 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
438 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
439 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
440 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\047\
441 \\000\047\047\060\047\047\047\047\047\047\047\047\047\047\047\047\
442 \\047\047\047\047\047\047\047\047\047\047\047\000\000\000\000\000\
443 \\000"
444 ),
445 (61,
446 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
447 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
448 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
449 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
450 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
451 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\047\
452 \\000\047\047\047\047\062\047\047\047\047\047\047\047\047\047\047\
453 \\047\047\047\047\047\047\047\047\047\047\047\000\000\000\000\000\
454 \\000"
455 ),
456 (62,
457 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
458 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
459 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
460 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
461 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
462 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\047\
463 \\000\047\047\047\047\047\063\047\047\047\047\047\047\047\047\047\
464 \\047\047\047\047\047\047\047\047\047\047\047\000\000\000\000\000\
465 \\000"
466 ),
467 (63,
468 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
469 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
470 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
471 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
472 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
473 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\047\
474 \\000\047\047\047\047\047\047\047\047\047\047\047\047\047\047\047\
475 \\047\047\047\047\064\047\047\047\047\047\047\000\000\000\000\000\
476 \\000"
477 ),
478 (66,
479 "\000\000\000\000\000\000\000\000\000\067\000\000\000\000\000\000\
480 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
481 \\067\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
482 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
483 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
484 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
485 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
486 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
487 \\000"
488 ),
489 (68,
490 "\000\000\000\000\000\000\000\000\000\000\069\000\000\000\000\000\
491 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
492 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
493 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
494 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
495 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
496 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
497 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
498 \\000"
499 ),
500 (70,
501 "\070\070\070\070\070\070\070\070\070\070\000\070\070\000\070\070\
502 \\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\
503 \\070\070\000\070\070\070\070\070\000\000\070\070\070\070\070\070\
504 \\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\
505 \\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\
506 \\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\
507 \\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\
508 \\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\070\
509 \\070"
510 ),
511 (72,
512 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
513 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
514 \\000\000\000\000\000\000\000\000\000\000\073\000\000\000\000\000\
515 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
516 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
517 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
518 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
519 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
520 \\000"
521 ),
522 (78,
523 "\000\000\000\000\000\000\000\000\000\079\000\000\000\000\000\000\
524 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
525 \\079\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
526 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
527 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
528 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
529 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
530 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
531 \\000"
532 ),
533 (81,
534 "\081\081\081\081\081\081\081\081\081\081\000\081\081\000\081\081\
535 \\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\
536 \\081\081\081\081\081\081\081\081\000\000\000\081\081\081\081\081\
537 \\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\
538 \\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\
539 \\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\
540 \\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\
541 \\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\081\
542 \\081"
543 ),
544 (82,
545 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
546 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
547 \\000\000\000\000\000\000\000\000\000\083\000\000\000\000\000\000\
548 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
549 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
550 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
551 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
552 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
553 \\000"
554 ),
555 (85,
556 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
557 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
558 \\000\000\000\000\000\000\000\000\000\000\086\000\000\000\000\000\
559 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
560 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
561 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
562 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
563 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
564 \\000"
565 ),
566 (87,
567 "\087\087\087\087\087\087\087\087\087\087\000\087\087\000\087\087\
568 \\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\
569 \\087\087\000\087\087\087\087\087\087\087\087\087\087\087\087\087\
570 \\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\
571 \\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\
572 \\087\087\087\087\087\087\087\087\087\087\087\087\000\087\087\087\
573 \\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\
574 \\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\087\
575 \\087"
576 ),
577 (88,
578 "\000\000\000\000\000\000\000\000\000\090\092\000\000\091\000\000\
579 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
580 \\090\000\089\000\000\000\000\000\000\000\000\000\000\000\000\000\
581 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
582 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
583 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
584 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
585 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
586 \\000"
587 ),
588 (91,
589 "\000\000\000\000\000\000\000\000\000\000\092\000\000\000\000\000\
590 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
591 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
592 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
593 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
594 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
595 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
596 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
597 \\000"
598 ),
599 (94,
600 "\000\000\000\000\000\000\000\000\000\000\095\000\000\000\000\000\
601 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
602 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
603 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
604 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
605 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
606 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
607 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
608 \\000"
609 ),
610 (96,
611 "\096\096\096\096\096\096\096\096\096\096\000\096\096\000\096\096\
612 \\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\
613 \\096\096\096\096\096\096\096\096\000\000\000\096\096\096\096\096\
614 \\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\
615 \\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\
616 \\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\
617 \\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\
618 \\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\096\
619 \\096"
620 ),
621 (97,
622 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
623 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
624 \\000\000\000\000\000\000\000\000\000\098\000\000\000\000\000\000\
625 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
626 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
627 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
628 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
629 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
630 \\000"
631 ),
632 (100,
633 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
634 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
635 \\000\000\000\000\000\000\000\000\000\000\101\000\000\000\000\000\
636 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
637 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
638 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
639 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
640 \\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\
641 \\000"
642 ),
643 (0, "")]
644 fun f x = x
645 val s = List.map f (List.rev (tl (List.rev s)))
646 exception LexHackingError
647 fun look ((j,x)::r, i: int) = if i = j then x else look(r, i)
648 | look ([], i) = raise LexHackingError
649 fun g {fin=x, trans=i} = {fin=x, trans=look(s,i)}
650 in Vector.fromList(List.map g
651 [{fin = [], trans = 0},
652 {fin = [], trans = 1},
653 {fin = [], trans = 1},
654 {fin = [], trans = 3},
655 {fin = [], trans = 3},
656 {fin = [], trans = 5},
657 {fin = [], trans = 5},
658 {fin = [], trans = 7},
659 {fin = [], trans = 7},
660 {fin = [], trans = 9},
661 {fin = [], trans = 9},
662 {fin = [], trans = 11},
663 {fin = [], trans = 11},
664 {fin = [], trans = 13},
665 {fin = [], trans = 13},
666 {fin = [(N 11),(N 21)], trans = 15},
667 {fin = [(N 11)], trans = 15},
668 {fin = [(N 21)], trans = 17},
669 {fin = [(N 2)], trans = 0},
670 {fin = [(N 21)], trans = 19},
671 {fin = [(N 14)], trans = 0},
672 {fin = [(N 19),(N 21)], trans = 21},
673 {fin = [(N 19)], trans = 0},
674 {fin = [(N 100)], trans = 0},
675 {fin = [(N 42),(N 100)], trans = 0},
676 {fin = [(N 93),(N 100)], trans = 0},
677 {fin = [(N 40),(N 100)], trans = 0},
678 {fin = [(N 96),(N 100)], trans = 27},
679 {fin = [(N 96)], trans = 27},
680 {fin = [(N 83)], trans = 0},
681 {fin = [(N 96),(N 100)], trans = 30},
682 {fin = [(N 34),(N 96)], trans = 27},
683 {fin = [(N 96),(N 100)], trans = 32},
684 {fin = [(N 96)], trans = 33},
685 {fin = [(N 38),(N 96)], trans = 27},
686 {fin = [(N 91),(N 100)], trans = 0},
687 {fin = [(N 86),(N 100)], trans = 36},
688 {fin = [(N 86)], trans = 36},
689 {fin = [(N 100)], trans = 38},
690 {fin = [(N 49)], trans = 0},
691 {fin = [(N 44),(N 100)], trans = 0},
692 {fin = [(N 46),(N 100)], trans = 0},
693 {fin = [(N 98),(N 100)], trans = 42},
694 {fin = [(N 5)], trans = 0},
695 {fin = [(N 79),(N 100)], trans = 44},
696 {fin = [(N 79)], trans = 44},
697 {fin = [(N 100)], trans = 46},
698 {fin = [(N 76)], trans = 47},
699 {fin = [(N 76)], trans = 48},
700 {fin = [(N 76)], trans = 49},
701 {fin = [(N 76)], trans = 50},
702 {fin = [(N 76)], trans = 51},
703 {fin = [(N 62),(N 76)], trans = 47},
704 {fin = [(N 76)], trans = 53},
705 {fin = [(N 76)], trans = 54},
706 {fin = [(N 76)], trans = 55},
707 {fin = [(N 76)], trans = 56},
708 {fin = [(N 76)], trans = 57},
709 {fin = [(N 76)], trans = 58},
710 {fin = [(N 76)], trans = 59},
711 {fin = [(N 72),(N 76)], trans = 47},
712 {fin = [(N 76)], trans = 61},
713 {fin = [(N 76)], trans = 62},
714 {fin = [(N 76)], trans = 63},
715 {fin = [(N 55),(N 76)], trans = 47},
716 {fin = [(N 89)], trans = 0},
717 {fin = [(N 31),(N 100)], trans = 66},
718 {fin = [(N 31)], trans = 66},
719 {fin = [(N 26),(N 100)], trans = 68},
720 {fin = [(N 26)], trans = 0},
721 {fin = [(N 109)], trans = 70},
722 {fin = [(N 104)], trans = 0},
723 {fin = [(N 102)], trans = 72},
724 {fin = [(N 8)], trans = 0},
725 {fin = [(N 106)], trans = 0},
726 {fin = [(N 19)], trans = 21},
727 {fin = [(N 162)], trans = 0},
728 {fin = [(N 160),(N 162)], trans = 0},
729 {fin = [(N 158),(N 162)], trans = 78},
730 {fin = [(N 158)], trans = 78},
731 {fin = [(N 19),(N 162)], trans = 21},
732 {fin = [(N 120)], trans = 81},
733 {fin = [(N 111)], trans = 82},
734 {fin = [(N 114)], trans = 0},
735 {fin = [(N 111)], trans = 0},
736 {fin = [(N 111)], trans = 85},
737 {fin = [(N 117)], trans = 0},
738 {fin = [(N 143)], trans = 87},
739 {fin = [(N 135)], trans = 88},
740 {fin = [(N 146)], trans = 0},
741 {fin = [(N 155)], trans = 0},
742 {fin = [(N 152)], trans = 91},
743 {fin = [(N 152)], trans = 0},
744 {fin = [(N 133)], trans = 0},
745 {fin = [(N 140)], trans = 94},
746 {fin = [(N 140)], trans = 0},
747 {fin = [(N 131)], trans = 96},
748 {fin = [(N 122)], trans = 97},
749 {fin = [(N 125)], trans = 0},
750 {fin = [(N 122)], trans = 0},
751 {fin = [(N 122)], trans = 100},
752 {fin = [(N 128)], trans = 0}])
753 end
754 structure StartStates =
755 struct
756 datatype yystartstate = STARTSTATE of int
757
758 (* start state definitions *)
759
760 val A = STARTSTATE 3;
761 val CODE = STARTSTATE 5;
762 val COMMENT = STARTSTATE 9;
763 val EMPTYCOMMENT = STARTSTATE 13;
764 val F = STARTSTATE 7;
765 val INITIAL = STARTSTATE 1;
766 val STRING = STARTSTATE 11;
767
768 end
769 type result = UserDeclarations.lexresult
770 exception LexerError (* raised if illegal leaf action tried *)
771 end
772
773 structure YYPosInt : INTEGER = Int
774 fun makeLexer yyinput =
775 let val yygone0= YYPosInt.fromInt ~1
776 val yyb = ref "\n" (* buffer *)
777 val yybl = ref 1 (*buffer length *)
778 val yybufpos = ref 1 (* location of next character to use *)
779 val yygone = ref yygone0 (* position in file of beginning of buffer *)
780 val yydone = ref false (* eof found yet? *)
781 val yybegin = ref 1 (*Current 'start state' for lexer *)
782
783 val YYBEGIN = fn (Internal.StartStates.STARTSTATE x) =>
784 yybegin := x
785
786 fun lex (yyarg as ((*#line 68.7 "yacc.lex"*)inputSource(*#line 786.1 "yacc.lex.sml"*)
787 )) =
788 let fun continue() : Internal.result =
789 let fun scan (s,AcceptingLeaves : Internal.yyfinstate list list,l,i0) =
790 let fun action (i,nil) = raise LexError
791 | action (i,nil::l) = action (i-1,l)
792 | action (i,(node::acts)::l) =
793 case node of
794 Internal.N yyk =>
795 (let fun yymktext() = String.substring(!yyb,i0,i-i0)
796 val yypos = YYPosInt.+(YYPosInt.fromInt i0, !yygone)
797 open UserDeclarations Internal.StartStates
798 in (yybufpos := i; case yyk of
799
800 (* Application actions *)
801
802 100 => let val yytext=yymktext() in (*#line 109.21 "yacc.lex"*)UNKNOWN(yytext,pos yypos,pos yypos)(*#line 802.1 "yacc.lex.sml"*)
803 end
804 | 102 => let val yytext=yymktext() in (*#line 110.21 "yacc.lex"*)inc pcount; Add yytext; continue()(*#line 804.1 "yacc.lex.sml"*)
805 end
806 | 104 => let val yytext=yymktext() in (*#line 111.21 "yacc.lex"*)dec pcount;
807 if !pcount = 0 then
808 PROG (concat (rev (!text)),!actionstart,pos yypos)
809 else (Add yytext; continue())(*#line 809.1 "yacc.lex.sml"*)
810 end
811 | 106 => let val yytext=yymktext() in (*#line 115.21 "yacc.lex"*)Add yytext; YYBEGIN STRING; continue()(*#line 811.1 "yacc.lex.sml"*)
812 end
813 | 109 => let val yytext=yymktext() in (*#line 116.25 "yacc.lex"*)Add yytext; continue()(*#line 813.1 "yacc.lex.sml"*)
814 end
815 | 11 => let val yytext=yymktext() in (*#line 82.27 "yacc.lex"*)Add yytext; continue()(*#line 815.1 "yacc.lex.sml"*)
816 end
817 | 111 => let val yytext=yymktext() in (*#line 118.21 "yacc.lex"*)Add yytext; continue()(*#line 817.1 "yacc.lex.sml"*)
818 end
819 | 114 => let val yytext=yymktext() in (*#line 119.21 "yacc.lex"*)Add yytext; dec commentLevel;
820 if !commentLevel=0
821 then BOGUS_VALUE(pos yypos,pos yypos)
822 else continue()
823 (*#line 823.1 "yacc.lex.sml"*)
824 end
825 | 117 => let val yytext=yymktext() in (*#line 124.21 "yacc.lex"*)Add yytext; inc commentLevel; continue()(*#line 825.1 "yacc.lex.sml"*)
826 end
827 | 120 => let val yytext=yymktext() in (*#line 125.28 "yacc.lex"*)Add yytext; continue()(*#line 827.1 "yacc.lex.sml"*)
828 end
829 | 122 => ((*#line 127.26 "yacc.lex"*)continue()(*#line 829.1 "yacc.lex.sml"*)
830 )
831 | 125 => ((*#line 128.26 "yacc.lex"*)dec commentLevel;
832 if !commentLevel=0 then YYBEGIN A else ();
833 continue ()(*#line 833.1 "yacc.lex.sml"*)
834 )
835 | 128 => ((*#line 131.26 "yacc.lex"*)inc commentLevel; continue()(*#line 835.1 "yacc.lex.sml"*)
836 )
837 | 131 => ((*#line 132.33 "yacc.lex"*)continue()(*#line 837.1 "yacc.lex.sml"*)
838 )
839 | 133 => let val yytext=yymktext() in (*#line 134.21 "yacc.lex"*)Add yytext; YYBEGIN CODE; continue()(*#line 839.1 "yacc.lex.sml"*)
840 end
841 | 135 => let val yytext=yymktext() in (*#line 135.21 "yacc.lex"*)Add yytext; continue()(*#line 841.1 "yacc.lex.sml"*)
842 end
843 | 14 => ((*#line 83.22 "yacc.lex"*)YYBEGIN A; HEADER (concat (rev (!text)),pos yypos,pos yypos)(*#line 843.1 "yacc.lex.sml"*)
844 )
845 | 140 => let val yytext=yymktext() in (*#line 136.21 "yacc.lex"*)Add yytext; error inputSource (pos yypos) "unclosed string";
846 incLineNum yypos; YYBEGIN CODE; continue()(*#line 846.1 "yacc.lex.sml"*)
847 end
848 | 143 => let val yytext=yymktext() in (*#line 138.27 "yacc.lex"*)Add yytext; continue()(*#line 848.1 "yacc.lex.sml"*)
849 end
850 | 146 => let val yytext=yymktext() in (*#line 139.21 "yacc.lex"*)Add yytext; continue()(*#line 850.1 "yacc.lex.sml"*)
851 end
852 | 152 => let val yytext=yymktext() in (*#line 140.21 "yacc.lex"*)Add yytext; incLineNum yypos; YYBEGIN F; continue()(*#line 852.1 "yacc.lex.sml"*)
853 end
854 | 155 => let val yytext=yymktext() in (*#line 141.22 "yacc.lex"*)Add yytext; YYBEGIN F; continue()(*#line 854.1 "yacc.lex.sml"*)
855 end
856 | 158 => let val yytext=yymktext() in (*#line 143.21 "yacc.lex"*)Add yytext; continue()(*#line 856.1 "yacc.lex.sml"*)
857 end
858 | 160 => let val yytext=yymktext() in (*#line 144.21 "yacc.lex"*)Add yytext; YYBEGIN STRING; continue()(*#line 858.1 "yacc.lex.sml"*)
859 end
860 | 162 => let val yytext=yymktext() in (*#line 145.21 "yacc.lex"*)Add yytext; error inputSource (pos yypos) "unclosed string";
861 YYBEGIN CODE; continue()(*#line 861.1 "yacc.lex.sml"*)
862 end
863 | 19 => let val yytext=yymktext() in (*#line 84.49 "yacc.lex"*)Add yytext; incLineNum yypos; continue()(*#line 863.1 "yacc.lex.sml"*)
864 end
865 | 2 => let val yytext=yymktext() in (*#line 77.21 "yacc.lex"*)Add yytext; YYBEGIN COMMENT; commentLevel := 1;
866 continue(); YYBEGIN INITIAL; continue()(*#line 866.1 "yacc.lex.sml"*)
867 end
868 | 21 => let val yytext=yymktext() in (*#line 85.22 "yacc.lex"*)Add yytext; continue()(*#line 868.1 "yacc.lex.sml"*)
869 end
870 | 26 => ((*#line 87.21 "yacc.lex"*)incLineNum yypos; continue ()(*#line 870.1 "yacc.lex.sml"*)
871 )
872 | 31 => ((*#line 88.21 "yacc.lex"*)continue()(*#line 872.1 "yacc.lex.sml"*)
873 )
874 | 34 => ((*#line 89.21 "yacc.lex"*)OF(pos yypos,pos yypos)(*#line 874.1 "yacc.lex.sml"*)
875 )
876 | 38 => ((*#line 90.21 "yacc.lex"*)FOR(pos yypos,pos yypos)(*#line 876.1 "yacc.lex.sml"*)
877 )
878 | 40 => ((*#line 91.21 "yacc.lex"*)LBRACE(pos yypos,pos yypos)(*#line 878.1 "yacc.lex.sml"*)
879 )
880 | 42 => ((*#line 92.21 "yacc.lex"*)RBRACE(pos yypos,pos yypos)(*#line 880.1 "yacc.lex.sml"*)
881 )
882 | 44 => ((*#line 93.21 "yacc.lex"*)COMMA(pos yypos,pos yypos)(*#line 882.1 "yacc.lex.sml"*)
883 )
884 | 46 => ((*#line 94.21 "yacc.lex"*)ASTERISK(pos yypos,pos yypos)(*#line 884.1 "yacc.lex.sml"*)
885 )
886 | 49 => ((*#line 95.21 "yacc.lex"*)ARROW(pos yypos,pos yypos)(*#line 886.1 "yacc.lex.sml"*)
887 )
888 | 5 => ((*#line 79.21 "yacc.lex"*)YYBEGIN EMPTYCOMMENT; commentLevel := 1; continue()(*#line 888.1 "yacc.lex.sml"*)
889 )
890 | 55 => ((*#line 96.21 "yacc.lex"*)PREC(Hdr.LEFT,pos yypos,pos yypos)(*#line 890.1 "yacc.lex.sml"*)
891 )
892 | 62 => ((*#line 97.21 "yacc.lex"*)PREC(Hdr.RIGHT,pos yypos,pos yypos)(*#line 892.1 "yacc.lex.sml"*)
893 )
894 | 72 => ((*#line 98.21 "yacc.lex"*)PREC(Hdr.NONASSOC,pos yypos,pos yypos)(*#line 894.1 "yacc.lex.sml"*)
895 )
896 | 76 => let val yytext=yymktext() in (*#line 99.21 "yacc.lex"*)lookup(yytext,pos yypos,pos yypos)(*#line 896.1 "yacc.lex.sml"*)
897 end
898 | 79 => let val yytext=yymktext() in (*#line 100.21 "yacc.lex"*)TYVAR(yytext,pos yypos,pos yypos)(*#line 898.1 "yacc.lex.sml"*)
899 end
900 | 8 => let val yytext=yymktext() in (*#line 80.21 "yacc.lex"*)Add yytext; YYBEGIN COMMENT; commentLevel := 1;
901 continue(); YYBEGIN CODE; continue()(*#line 901.1 "yacc.lex.sml"*)
902 end
903 | 83 => let val yytext=yymktext() in (*#line 101.21 "yacc.lex"*)IDDOT(yytext,pos yypos,pos yypos)(*#line 903.1 "yacc.lex.sml"*)
904 end
905 | 86 => let val yytext=yymktext() in (*#line 102.21 "yacc.lex"*)INT (yytext,pos yypos,pos yypos)(*#line 905.1 "yacc.lex.sml"*)
906 end
907 | 89 => ((*#line 103.21 "yacc.lex"*)DELIMITER(pos yypos,pos yypos)(*#line 907.1 "yacc.lex.sml"*)
908 )
909 | 91 => ((*#line 104.21 "yacc.lex"*)COLON(pos yypos,pos yypos)(*#line 909.1 "yacc.lex.sml"*)
910 )
911 | 93 => ((*#line 105.21 "yacc.lex"*)BAR(pos yypos,pos yypos)(*#line 911.1 "yacc.lex.sml"*)
912 )
913 | 96 => let val yytext=yymktext() in (*#line 106.21 "yacc.lex"*)ID ((yytext,pos yypos),pos yypos,pos yypos)(*#line 913.1 "yacc.lex.sml"*)
914 end
915 | 98 => ((*#line 107.21 "yacc.lex"*)pcount := 1; actionstart := pos yypos;
916 text := nil; YYBEGIN CODE; continue() before YYBEGIN A(*#line 916.1 "yacc.lex.sml"*)
917 )
918 | _ => raise Internal.LexerError
919
920 ) end )
921
922 val {fin,trans} = Vector.sub(Internal.tab, s)
923 val NewAcceptingLeaves = fin::AcceptingLeaves
924 in if l = !yybl then
925 if trans = #trans(Vector.sub(Internal.tab,0))
926 then action(l,NewAcceptingLeaves
927 ) else let val newchars= if !yydone then "" else yyinput 1024
928 in if (String.size newchars)=0
929 then (yydone := true;
930 if (l=i0) then UserDeclarations.eof yyarg
931 else action(l,NewAcceptingLeaves))
932 else (if i0=l then yyb := newchars
933 else yyb := String.substring(!yyb,i0,l-i0)^newchars;
934 yygone := YYPosInt.+(!yygone, YYPosInt.fromInt i0);
935 yybl := String.size (!yyb);
936 scan (s,AcceptingLeaves,l-i0,0))
937 end
938 else let val NewChar = Char.ord(CharVector.sub(!yyb,l))
939 val NewChar = if NewChar<128 then NewChar else 128
940 val NewState = Char.ord(CharVector.sub(trans,NewChar))
941 in if NewState=0 then action(l,NewAcceptingLeaves)
942 else scan(NewState,NewAcceptingLeaves,l+1,i0)
943 end
944 end
945 (*
946 val start= if String.substring(!yyb,!yybufpos-1,1)="\n"
947 then !yybegin+1 else !yybegin
948 *)
949 in scan(!yybegin (* start *),nil,!yybufpos,!yybufpos)
950 end
951 in continue end
952 in lex
953 end
954 end