Debian Codegraph @

lib/mllpt-lib/ml-lpt/ml-ulex/FrontEnds/ml-lex/ml-lex.lex.sml

raw
1 functor MLLexLexFun(structure Tok: MLLex_TOKENS) = struct
2
3 structure yyInput : sig
4
5 type stream
6 val mkStream : (int -> string) -> stream
7 val fromStream : TextIO.StreamIO.instream -> stream
8 val getc : stream -> (Char.char * stream) option
9 val getpos : stream -> int
10 val getlineNo : stream -> int
11 val subtract : stream * stream -> string
12 val eof : stream -> bool
13 val lastWasNL : stream -> bool
14
15 end = struct
16
17 structure TIO = TextIO
18 structure TSIO = TIO.StreamIO
19 structure TPIO = TextPrimIO
20
21 datatype stream = Stream of {
22 strm : TSIO.instream,
23 id : int, (* track which streams originated
24 * from the same stream *)
25 pos : int,
26 lineNo : int,
27 lastWasNL : bool
28 }
29
30 local
31 val next = ref 0
32 in
33 fun nextId() = !next before (next := !next + 1)
34 end
35
36 val initPos = 2 (* ml-lex bug compatibility *)
37
38 fun mkStream inputN = let
39 val strm = TSIO.mkInstream
40 (TPIO.RD {
41 name = "lexgen",
42 chunkSize = 4096,
43 readVec = SOME inputN,
44 readArr = NONE,
45 readVecNB = NONE,
46 readArrNB = NONE,
47 block = NONE,
48 canInput = NONE,
49 avail = (fn () => NONE),
50 getPos = NONE,
51 setPos = NONE,
52 endPos = NONE,
53 verifyPos = NONE,
54 close = (fn () => ()),
55 ioDesc = NONE
56 }, "")
57 in
58 Stream {strm = strm, id = nextId(), pos = initPos, lineNo = 1,
59 lastWasNL = true}
60 end
61
62 fun fromStream strm = Stream {
63 strm = strm, id = nextId(), pos = initPos, lineNo = 1, lastWasNL = true
64 }
65
66 fun getc (Stream {strm, pos, id, lineNo, ...}) = (case TSIO.input1 strm
67 of NONE => NONE
68 | SOME (c, strm') =>
69 SOME (c, Stream {
70 strm = strm',
71 pos = pos+1,
72 id = id,
73 lineNo = lineNo +
74 (if c = #"\n" then 1 else 0),
75 lastWasNL = (c = #"\n")
76 })
77 (* end case*))
78
79 fun getpos (Stream {pos, ...}) = pos
80
81 fun getlineNo (Stream {lineNo, ...}) = lineNo
82
83 fun subtract (new, old) = let
84 val Stream {strm = strm, pos = oldPos, id = oldId, ...} = old
85 val Stream {pos = newPos, id = newId, ...} = new
86 val (diff, _) = if newId = oldId andalso newPos >= oldPos
87 then TSIO.inputN (strm, newPos - oldPos)
88 else raise Fail
89 "BUG: yyInput: attempted to subtract incompatible streams"
90 in
91 diff
92 end
93
94 fun eof s = not (isSome (getc s))
95
96 fun lastWasNL (Stream {lastWasNL, ...}) = lastWasNL
97
98 end
99
100 datatype yystart_state =
101 RE | DEFS | RECB | STRING | CHARCLASS | LEXSTATES | ACTION | INITIAL
102 structure UserDeclarations =
103 struct
104
105 type pos = int
106 type svalue = Tok.svalue
107 type ('a,'b) token = ('a,'b) Tok.token
108 type lexresult= (svalue,pos) token
109
110 open Tok
111
112 val eof = fn () => EOF(~1,~1)
113 val error = (* fn (e,l : int,_) =>
114 output(std_out,"line " ^ (makestring l) ^
115 ": " ^ e ^ "\n") *)
116 fn _ => ()
117
118 (* what to do (i.e. switch start states) after recognizing an action *)
119 val afterAction = ref (fn () => ())
120
121 (* paren counting for actions *)
122 val pcount = ref 0
123 val inquote = ref false
124 fun inc r = if !inquote then () else r := !r + 1
125 fun dec r = if !inquote then () else r := !r - 1
126
127 (* buffer for accumulating test across the rules for actions *)
128 local
129 val text = ref ([] : string list)
130 in
131 fun clrAction () = (text := ["("])
132 fun updAction str = if !pcount > 0
133 then (text := str :: !text)
134 else ()
135 fun getAction () = String.concat (rev (!text))
136 end
137
138 structure SIS = RegExp.SymSet
139 fun uniChar s = let
140 fun toW32 (c : Char.char) : UTF8.wchar =
141 (case c of #"0" => 0w0 | #"1" => 0w1 | #"2" => 0w2 | #"3" => 0w3
142 | #"4" => 0w4 | #"5" => 0w5 | #"6" => 0w6 | #"7" => 0w7
143 | #"8" => 0w8 | #"9" => 0w9 | #"a" => 0w10 | #"A" => 0w10
144 | #"b" => 0w11 | #"B" => 0w11 | #"c" => 0w12 | #"C" => 0w12
145 | #"d" => 0w13 | #"D" => 0w13 | #"e" => 0w14 | #"E" => 0w14
146 | #"f" => 0w15 | #"F" => 0w15
147 | _ => raise Fail "invalid unicode escape sequence")
148 fun iter (#"u"::_, v) = v
149 | iter (c::cs, v) = iter (cs, 0w16*v + (toW32 c))
150 | iter _ = raise Fail "invalid unicode escape sequence"
151 in iter (List.rev (String.explode s), 0w0)
152 end
153
154 val highAscii = SIS.interval(0w128, 0w255)
155
156
157
158 end
159
160 datatype yymatch
161 = yyNO_MATCH
162 | yyMATCH of yyInput.stream * action * yymatch
163 withtype action = yyInput.stream * yymatch -> UserDeclarations.lexresult
164
165 local
166
167 val yytable =
168 Vector.fromList []
169 fun mk yyins = let
170 (* current start state *)
171 val yyss = ref INITIAL
172 fun YYBEGIN ss = (yyss := ss)
173 (* current input stream *)
174 val yystrm = ref yyins
175 (* get one char of input *)
176 val yygetc = yyInput.getc
177 (* create yytext *)
178 fun yymktext(strm) = yyInput.subtract (strm, !yystrm)
179 open UserDeclarations
180 fun lex
181 (yyarg as ()) = let
182 fun continue() = let
183 val yylastwasn = yyInput.lastWasNL (!yystrm)
184 fun yystuck (yyNO_MATCH) = raise Fail "stuck state"
185 | yystuck (yyMATCH (strm, action, old)) =
186 action (strm, old)
187 val yypos = yyInput.getpos (!yystrm)
188 val yygetlineNo = yyInput.getlineNo
189 fun yyactsToMatches (strm, [], oldMatches) = oldMatches
190 | yyactsToMatches (strm, act::acts, oldMatches) =
191 yyMATCH (strm, act, yyactsToMatches (strm, acts, oldMatches))
192 fun yygo actTable =
193 (fn (~1, _, oldMatches) => yystuck oldMatches
194 | (curState, strm, oldMatches) => let
195 val (transitions, finals') = Vector.sub (yytable, curState)
196 val finals = List.map (fn i => Vector.sub (actTable, i)) finals'
197 fun tryfinal() =
198 yystuck (yyactsToMatches (strm, finals, oldMatches))
199 fun find (c, []) = NONE
200 | find (c, (c1, c2, s)::ts) =
201 if c1 <= c andalso c <= c2 then SOME s
202 else find (c, ts)
203 in case yygetc strm
204 of SOME(c, strm') =>
205 (case find (c, transitions)
206 of NONE => tryfinal()
207 | SOME n =>
208 yygo actTable
209 (n, strm',
210 yyactsToMatches (strm, finals, oldMatches)))
211 | NONE => tryfinal()
212 end)
213 in
214 let
215 fun yyAction0 (strm, lastMatch : yymatch) = let
216 val yylineno = ref(yygetlineNo(!(yystrm)))
217 in
218 yystrm := strm; (YYBEGIN DEFS; LEXMARK(!yylineno, !yylineno))
219 end
220 fun yyAction1 (strm, lastMatch : yymatch) = let
221 val yylineno = ref(yygetlineNo(!(yystrm)))
222 val yytext = yymktext(strm)
223 in
224 yystrm := strm; (DECLS(yytext, !yylineno, !yylineno))
225 end
226 fun yyAction2 (strm, lastMatch : yymatch) = (yystrm := strm; (lex()))
227 fun yyAction3 (strm, lastMatch : yymatch) = let
228 val yylineno = ref(yygetlineNo(!(yystrm)))
229 in
230 yystrm := strm; (YYBEGIN RE; LEXMARK(!yylineno, !yylineno))
231 end
232 fun yyAction4 (strm, lastMatch : yymatch) = let
233 val yylineno = ref(yygetlineNo(!(yystrm)))
234 in
235 yystrm := strm; (YYBEGIN LEXSTATES; STATES(!yylineno, !yylineno))
236 end
237 fun yyAction5 (strm, lastMatch : yymatch) = let
238 val yylineno = ref(yygetlineNo(!(yystrm)))
239 in
240 yystrm := strm;
241 (clrAction(); pcount := 1; inquote := false;
242 YYBEGIN ACTION;
243 afterAction := (fn () => YYBEGIN DEFS);
244 HEADER(!yylineno, !yylineno))
245 end
246 fun yyAction6 (strm, lastMatch : yymatch) = let
247 val yylineno = ref(yygetlineNo(!(yystrm)))
248 in
249 yystrm := strm; (STRUCT(!yylineno, !yylineno))
250 end
251 fun yyAction7 (strm, lastMatch : yymatch) = let
252 val yylineno = ref(yygetlineNo(!(yystrm)))
253 in
254 yystrm := strm;
255 (clrAction(); pcount := 1; inquote := false;
256 YYBEGIN ACTION;
257 afterAction := (fn () => YYBEGIN DEFS);
258 ARG(!yylineno, !yylineno))
259 end
260 fun yyAction8 (strm, lastMatch : yymatch) = let
261 val yylineno = ref(yygetlineNo(!(yystrm)))
262 in
263 yystrm := strm; (COUNT(!yylineno, !yylineno))
264 end
265 fun yyAction9 (strm, lastMatch : yymatch) = let
266 val oldStrm = !(yystrm)
267 fun REJECT () = (yystrm := oldStrm; yystuck(lastMatch))
268 val yylineno = ref(yygetlineNo(!(yystrm)))
269 in
270 yystrm := strm; (REJECTTOK(!yylineno, !yylineno))
271 end
272 fun yyAction10 (strm, lastMatch : yymatch) = let
273 val yylineno = ref(yygetlineNo(!(yystrm)))
274 in
275 yystrm := strm; (UNICODE(!yylineno, !yylineno))
276 end
277 fun yyAction11 (strm, lastMatch : yymatch) = let
278 val yylineno = ref(yygetlineNo(!(yystrm)))
279 in
280 yystrm := strm; (FULL(!yylineno, !yylineno))
281 end
282 fun yyAction12 (strm, lastMatch : yymatch) = let
283 val yylineno = ref(yygetlineNo(!(yystrm)))
284 val yytext = yymktext(strm)
285 in
286 yystrm := strm; (ID(yytext, !yylineno, !yylineno))
287 end
288 fun yyAction13 (strm, lastMatch : yymatch) = let
289 val yylineno = ref(yygetlineNo(!(yystrm)))
290 in
291 yystrm := strm; (YYBEGIN RE; EQ(!yylineno, !yylineno))
292 end
293 fun yyAction14 (strm, lastMatch : yymatch) = (yystrm := strm; (lex()))
294 fun yyAction15 (strm, lastMatch : yymatch) = let
295 val yylineno = ref(yygetlineNo(!(yystrm)))
296 in
297 yystrm := strm; (QMARK(!yylineno, !yylineno))
298 end
299 fun yyAction16 (strm, lastMatch : yymatch) = let
300 val yylineno = ref(yygetlineNo(!(yystrm)))
301 in
302 yystrm := strm; (STAR(!yylineno, !yylineno))
303 end
304 fun yyAction17 (strm, lastMatch : yymatch) = let
305 val yylineno = ref(yygetlineNo(!(yystrm)))
306 in
307 yystrm := strm; (PLUS(!yylineno, !yylineno))
308 end
309 fun yyAction18 (strm, lastMatch : yymatch) = let
310 val yylineno = ref(yygetlineNo(!(yystrm)))
311 in
312 yystrm := strm; (BAR(!yylineno, !yylineno))
313 end
314 fun yyAction19 (strm, lastMatch : yymatch) = let
315 val yylineno = ref(yygetlineNo(!(yystrm)))
316 in
317 yystrm := strm; (LP(!yylineno, !yylineno))
318 end
319 fun yyAction20 (strm, lastMatch : yymatch) = let
320 val yylineno = ref(yygetlineNo(!(yystrm)))
321 in
322 yystrm := strm; (RP(!yylineno, !yylineno))
323 end
324 fun yyAction21 (strm, lastMatch : yymatch) = let
325 val yylineno = ref(yygetlineNo(!(yystrm)))
326 in
327 yystrm := strm; (DOLLAR(!yylineno, !yylineno))
328 end
329 fun yyAction22 (strm, lastMatch : yymatch) = let
330 val yylineno = ref(yygetlineNo(!(yystrm)))
331 in
332 yystrm := strm; (SLASH(!yylineno, !yylineno))
333 end
334 fun yyAction23 (strm, lastMatch : yymatch) = let
335 val yylineno = ref(yygetlineNo(!(yystrm)))
336 in
337 yystrm := strm; (DOT(!yylineno, !yylineno))
338 end
339 fun yyAction24 (strm, lastMatch : yymatch) = let
340 val yylineno = ref(yygetlineNo(!(yystrm)))
341 in
342 yystrm := strm; (CARAT(!yylineno, !yylineno))
343 end
344 fun yyAction25 (strm, lastMatch : yymatch) = (yystrm := strm;
345 (YYBEGIN RECB; lex()))
346 fun yyAction26 (strm, lastMatch : yymatch) = (yystrm := strm;
347 (YYBEGIN STRING; lex()))
348 fun yyAction27 (strm, lastMatch : yymatch) = let
349 val yylineno = ref(yygetlineNo(!(yystrm)))
350 in
351 yystrm := strm; (YYBEGIN CHARCLASS; LB(!yylineno, !yylineno))
352 end
353 fun yyAction28 (strm, lastMatch : yymatch) = let
354 val yylineno = ref(yygetlineNo(!(yystrm)))
355 in
356 yystrm := strm; (YYBEGIN LEXSTATES; LT(!yylineno, !yylineno))
357 end
358 fun yyAction29 (strm, lastMatch : yymatch) = let
359 val yylineno = ref(yygetlineNo(!(yystrm)))
360 in
361 yystrm := strm; (GT(!yylineno, !yylineno))
362 end
363 fun yyAction30 (strm, lastMatch : yymatch) = let
364 val yylineno = ref(yygetlineNo(!(yystrm)))
365 in
366 yystrm := strm;
367 (clrAction(); pcount := 1; inquote := false;
368 YYBEGIN ACTION;
369 afterAction := (fn () => YYBEGIN RE);
370 ARROW(!yylineno, !yylineno))
371 end
372 fun yyAction31 (strm, lastMatch : yymatch) = let
373 val yylineno = ref(yygetlineNo(!(yystrm)))
374 in
375 yystrm := strm; (YYBEGIN DEFS; SEMI(!yylineno, !yylineno))
376 end
377 fun yyAction32 (strm, lastMatch : yymatch) = (yystrm := strm; (lex()))
378 fun yyAction33 (strm, lastMatch : yymatch) = let
379 val yylineno = ref(yygetlineNo(!(yystrm)))
380 val yytext = yymktext(strm)
381 in
382 yystrm := strm; (ID(yytext, !yylineno, !yylineno))
383 end
384 fun yyAction34 (strm, lastMatch : yymatch) = let
385 val yylineno = ref(yygetlineNo(!(yystrm)))
386 val yytext = yymktext(strm)
387 in
388 yystrm := strm;
389 (REPS(valOf (Int.fromString yytext), !yylineno, !yylineno))
390 end
391 fun yyAction35 (strm, lastMatch : yymatch) = let
392 val yylineno = ref(yygetlineNo(!(yystrm)))
393 in
394 yystrm := strm; (COMMA(!yylineno, !yylineno))
395 end
396 fun yyAction36 (strm, lastMatch : yymatch) = let
397 val yylineno = ref(yygetlineNo(!(yystrm)))
398 in
399 yystrm := strm; (YYBEGIN RE; RCB(!yylineno, !yylineno))
400 end
401 fun yyAction37 (strm, lastMatch : yymatch) = let
402 val yylineno = ref(yygetlineNo(!(yystrm)))
403 in
404 yystrm := strm; (YYBEGIN RE; RBD(!yylineno, !yylineno))
405 end
406 fun yyAction38 (strm, lastMatch : yymatch) = let
407 val yylineno = ref(yygetlineNo(!(yystrm)))
408 in
409 yystrm := strm; (YYBEGIN RE; RB(!yylineno, !yylineno))
410 end
411 fun yyAction39 (strm, lastMatch : yymatch) = let
412 val yylineno = ref(yygetlineNo(!(yystrm)))
413 in
414 yystrm := strm; (DASH(!yylineno, !yylineno))
415 end
416 fun yyAction40 (strm, lastMatch : yymatch) = let
417 val yylineno = ref(yygetlineNo(!(yystrm)))
418 in
419 yystrm := strm; (CARAT(!yylineno, !yylineno))
420 end
421 fun yyAction41 (strm, lastMatch : yymatch) = (yystrm := strm;
422 (YYBEGIN RE; lex()))
423 fun yyAction42 (strm, lastMatch : yymatch) = let
424 val yylineno = ref(yygetlineNo(!(yystrm)))
425 val yytext = yymktext(strm)
426 in
427 yystrm := strm;
428 (CHAR(valOf (String.fromString yytext), !yylineno, !yylineno))
429 end
430 fun yyAction43 (strm, lastMatch : yymatch) = let
431 val yylineno = ref(yygetlineNo(!(yystrm)))
432 val yytext = yymktext(strm)
433 in
434 yystrm := strm; (UNICHAR(uniChar yytext, !yylineno, !yylineno))
435 end
436 fun yyAction44 (strm, lastMatch : yymatch) = let
437 val yylineno = ref(yygetlineNo(!(yystrm)))
438 in
439 yystrm := strm; (HIGH_CHAR(!yylineno, !yylineno))
440 end
441 fun yyAction45 (strm, lastMatch : yymatch) = let
442 val yylineno = ref(yygetlineNo(!(yystrm)))
443 val yytext = yymktext(strm)
444 in
445 yystrm := strm;
446 (CHAR(String.substring (yytext, 1, 1), !yylineno, !yylineno))
447 end
448 fun yyAction46 (strm, lastMatch : yymatch) = let
449 val yylineno = ref(yygetlineNo(!(yystrm)))
450 val yytext = yymktext(strm)
451 in
452 yystrm := strm; (CHAR(yytext, !yylineno, !yylineno))
453 end
454 fun yyAction47 (strm, lastMatch : yymatch) = let
455 val yylineno = ref(yygetlineNo(!(yystrm)))
456 val yytext = yymktext(strm)
457 in
458 yystrm := strm; (LEXSTATE(yytext, !yylineno, !yylineno))
459 end
460 fun yyAction48 (strm, lastMatch : yymatch) = (yystrm := strm; (lex()))
461 fun yyAction49 (strm, lastMatch : yymatch) = let
462 val yylineno = ref(yygetlineNo(!(yystrm)))
463 in
464 yystrm := strm; (COMMA(!yylineno, !yylineno))
465 end
466 fun yyAction50 (strm, lastMatch : yymatch) = let
467 val yylineno = ref(yygetlineNo(!(yystrm)))
468 in
469 yystrm := strm; (YYBEGIN RE; GT(!yylineno, !yylineno))
470 end
471 fun yyAction51 (strm, lastMatch : yymatch) = let
472 val yylineno = ref(yygetlineNo(!(yystrm)))
473 in
474 yystrm := strm; (YYBEGIN DEFS; SEMI(!yylineno, !yylineno))
475 end
476 fun yyAction52 (strm, lastMatch : yymatch) = let
477 val yylineno = ref(yygetlineNo(!(yystrm)))
478 in
479 yystrm := strm;
480 (if !pcount = 0
481 then ((!afterAction)();
482 ACT(getAction(), !yylineno, !yylineno))
483 else (updAction ";"; lex()))
484 end
485 fun yyAction53 (strm, lastMatch : yymatch) = (yystrm := strm;
486 (updAction "("; inc pcount; lex()))
487 fun yyAction54 (strm, lastMatch : yymatch) = (yystrm := strm;
488 (updAction ")"; dec pcount; lex()))
489 fun yyAction55 (strm, lastMatch : yymatch) = (yystrm := strm;
490 (updAction "\\\""; lex()))
491 fun yyAction56 (strm, lastMatch : yymatch) = (yystrm := strm;
492 (updAction "\\\\"; lex()))
493 fun yyAction57 (strm, lastMatch : yymatch) = (yystrm := strm;
494 (updAction "\\"; lex()))
495 fun yyAction58 (strm, lastMatch : yymatch) = (yystrm := strm;
496 (updAction "\""; inquote := not (!inquote); lex()))
497 fun yyAction59 (strm, lastMatch : yymatch) = let
498 val yytext = yymktext(strm)
499 in
500 yystrm := strm; (updAction yytext; lex())
501 end
502 fun yyAction60 (strm, lastMatch : yymatch) = let
503 val yylineno = ref(yygetlineNo(!(yystrm)))
504 val yytext = yymktext(strm)
505 in
506 yystrm := strm;
507 (print (concat[
508 "[", Int.toString (!yylineno), "] Illegal character '",
509 String.toCString yytext, "'\n"
510 ]);
511 continue())
512 end
513 fun yyQ125 (strm, lastMatch : yymatch) = (case (yygetc(strm))
514 of NONE => yyAction0(strm, yyNO_MATCH)
515 | SOME(inp, strm') => yyAction0(strm, yyNO_MATCH)
516 (* end case *))
517 fun yyQ124 (strm, lastMatch : yymatch) = (case (yygetc(strm))
518 of NONE => yyAction1(strm, yyNO_MATCH)
519 | SOME(inp, strm') =>
520 if inp = #"%"
521 then yyQ126(strm', yyMATCH(strm, yyAction1, yyNO_MATCH))
522 else yyQ122(strm', yyMATCH(strm, yyAction1, yyNO_MATCH))
523 (* end case *))
524 and yyQ126 (strm, lastMatch : yymatch) = (case (yygetc(strm))
525 of NONE => yystuck(lastMatch)
526 | SOME(inp, strm') =>
527 if inp = #"%"
528 then yystuck(lastMatch)
529 else yyQ124(strm', lastMatch)
530 (* end case *))
531 and yyQ122 (strm, lastMatch : yymatch) = (case (yygetc(strm))
532 of NONE => yyAction1(strm, yyNO_MATCH)
533 | SOME(inp, strm') =>
534 if inp = #"%"
535 then yyQ126(strm', yyMATCH(strm, yyAction1, yyNO_MATCH))
536 else yyQ127(strm', yyMATCH(strm, yyAction1, yyNO_MATCH))
537 (* end case *))
538 and yyQ127 (strm, lastMatch : yymatch) = (case (yygetc(strm))
539 of NONE => yyAction1(strm, yyNO_MATCH)
540 | SOME(inp, strm') =>
541 if inp = #"%"
542 then yyQ126(strm', yyMATCH(strm, yyAction1, yyNO_MATCH))
543 else yyQ127(strm', yyMATCH(strm, yyAction1, yyNO_MATCH))
544 (* end case *))
545 fun yyQ123 (strm, lastMatch : yymatch) = (case (yygetc(strm))
546 of NONE => yyAction60(strm, yyNO_MATCH)
547 | SOME(inp, strm') =>
548 if inp = #"%"
549 then yyQ125(strm', yyMATCH(strm, yyAction60, yyNO_MATCH))
550 else yyQ124(strm', yyMATCH(strm, yyAction60, yyNO_MATCH))
551 (* end case *))
552 fun yyQ121 (strm, lastMatch : yymatch) = (case (yygetc(strm))
553 of NONE => yyAction1(strm, yyNO_MATCH)
554 | SOME(inp, strm') =>
555 if inp = #"%"
556 then yyQ126(strm', yyMATCH(strm, yyAction1, yyNO_MATCH))
557 else yyQ127(strm', yyMATCH(strm, yyAction1, yyNO_MATCH))
558 (* end case *))
559 fun yyQ7 (strm, lastMatch : yymatch) = (case (yygetc(strm))
560 of NONE =>
561 if yyInput.eof(!(yystrm))
562 then UserDeclarations.eof(yyarg)
563 else yyAction1(strm, yyNO_MATCH)
564 | SOME(inp, strm') =>
565 if inp = #"\v"
566 then yyQ121(strm', yyMATCH(strm, yyAction1, yyNO_MATCH))
567 else if inp < #"\v"
568 then if inp = #"\n"
569 then yyQ122(strm', yyMATCH(strm, yyAction1, yyNO_MATCH))
570 else yyQ121(strm', yyMATCH(strm, yyAction1, yyNO_MATCH))
571 else if inp = #"%"
572 then yyQ123(strm', yyMATCH(strm, yyAction1, yyNO_MATCH))
573 else yyQ121(strm', yyMATCH(strm, yyAction1, yyNO_MATCH))
574 (* end case *))
575 fun yyQ120 (strm, lastMatch : yymatch) = (case (yygetc(strm))
576 of NONE => yyAction56(strm, yyNO_MATCH)
577 | SOME(inp, strm') => yyAction56(strm, yyNO_MATCH)
578 (* end case *))
579 fun yyQ119 (strm, lastMatch : yymatch) = (case (yygetc(strm))
580 of NONE => yyAction55(strm, yyNO_MATCH)
581 | SOME(inp, strm') => yyAction55(strm, yyNO_MATCH)
582 (* end case *))
583 fun yyQ118 (strm, lastMatch : yymatch) = (case (yygetc(strm))
584 of NONE => yyAction57(strm, yyNO_MATCH)
585 | SOME(inp, strm') =>
586 if inp = #"#"
587 then yyAction57(strm, yyNO_MATCH)
588 else if inp < #"#"
589 then if inp = #"\""
590 then yyQ119(strm', yyMATCH(strm, yyAction57, yyNO_MATCH))
591 else yyAction57(strm, yyNO_MATCH)
592 else if inp = #"\\"
593 then yyQ120(strm', yyMATCH(strm, yyAction57, yyNO_MATCH))
594 else yyAction57(strm, yyNO_MATCH)
595 (* end case *))
596 fun yyQ117 (strm, lastMatch : yymatch) = (case (yygetc(strm))
597 of NONE => yyAction52(strm, yyNO_MATCH)
598 | SOME(inp, strm') => yyAction52(strm, yyNO_MATCH)
599 (* end case *))
600 fun yyQ116 (strm, lastMatch : yymatch) = (case (yygetc(strm))
601 of NONE => yyAction54(strm, yyNO_MATCH)
602 | SOME(inp, strm') => yyAction54(strm, yyNO_MATCH)
603 (* end case *))
604 fun yyQ115 (strm, lastMatch : yymatch) = (case (yygetc(strm))
605 of NONE => yyAction53(strm, yyNO_MATCH)
606 | SOME(inp, strm') => yyAction53(strm, yyNO_MATCH)
607 (* end case *))
608 fun yyQ114 (strm, lastMatch : yymatch) = (case (yygetc(strm))
609 of NONE => yyAction58(strm, yyNO_MATCH)
610 | SOME(inp, strm') => yyAction58(strm, yyNO_MATCH)
611 (* end case *))
612 fun yyQ113 (strm, lastMatch : yymatch) = (case (yygetc(strm))
613 of NONE => yyAction59(strm, yyNO_MATCH)
614 | SOME(inp, strm') =>
615 if inp = #"*"
616 then yyQ113(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
617 else if inp < #"*"
618 then if inp = #"#"
619 then yyQ113(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
620 else if inp < #"#"
621 then if inp = #"\""
622 then yyAction59(strm, yyNO_MATCH)
623 else yyQ113(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
624 else if inp <= #"'"
625 then yyQ113(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
626 else yyAction59(strm, yyNO_MATCH)
627 else if inp = #"<"
628 then yyQ113(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
629 else if inp < #"<"
630 then if inp = #";"
631 then yyAction59(strm, yyNO_MATCH)
632 else yyQ113(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
633 else if inp = #"\\"
634 then yyAction59(strm, yyNO_MATCH)
635 else yyQ113(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
636 (* end case *))
637 fun yyQ112 (strm, lastMatch : yymatch) = (case (yygetc(strm))
638 of NONE => yyAction59(strm, yyNO_MATCH)
639 | SOME(inp, strm') =>
640 if inp = #"*"
641 then yyQ113(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
642 else if inp < #"*"
643 then if inp = #"#"
644 then yyQ113(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
645 else if inp < #"#"
646 then if inp = #"\""
647 then yyAction59(strm, yyNO_MATCH)
648 else yyQ113(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
649 else if inp <= #"'"
650 then yyQ113(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
651 else yyAction59(strm, yyNO_MATCH)
652 else if inp = #"<"
653 then yyQ113(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
654 else if inp < #"<"
655 then if inp = #";"
656 then yyAction59(strm, yyNO_MATCH)
657 else yyQ113(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
658 else if inp = #"\\"
659 then yyAction59(strm, yyNO_MATCH)
660 else yyQ113(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
661 (* end case *))
662 fun yyQ6 (strm, lastMatch : yymatch) = (case (yygetc(strm))
663 of NONE =>
664 if yyInput.eof(!(yystrm))
665 then UserDeclarations.eof(yyarg)
666 else yyAction59(strm, yyNO_MATCH)
667 | SOME(inp, strm') =>
668 if inp = #")"
669 then yyQ116(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
670 else if inp < #")"
671 then if inp = #"\""
672 then yyQ114(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
673 else if inp < #"\""
674 then if inp = #"\n"
675 then yyQ113(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
676 else yyQ112(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
677 else if inp = #"("
678 then yyQ115(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
679 else yyQ112(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
680 else if inp = #"<"
681 then yyQ112(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
682 else if inp < #"<"
683 then if inp = #";"
684 then yyQ117(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
685 else yyQ112(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
686 else if inp = #"\\"
687 then yyQ118(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
688 else yyQ112(strm', yyMATCH(strm, yyAction59, yyNO_MATCH))
689 (* end case *))
690 fun yyQ111 (strm, lastMatch : yymatch) = (case (yygetc(strm))
691 of NONE => yyAction47(strm, yyNO_MATCH)
692 | SOME(inp, strm') =>
693 if inp = #"A"
694 then yyQ111(strm', yyMATCH(strm, yyAction47, yyNO_MATCH))
695 else if inp < #"A"
696 then if inp = #"("
697 then yyAction47(strm, yyNO_MATCH)
698 else if inp < #"("
699 then if inp = #"'"
700 then yyQ111(strm', yyMATCH(strm, yyAction47, yyNO_MATCH))
701 else yyAction47(strm, yyNO_MATCH)
702 else if inp = #"0"
703 then yyQ111(strm', yyMATCH(strm, yyAction47, yyNO_MATCH))
704 else if inp < #"0"
705 then yyAction47(strm, yyNO_MATCH)
706 else if inp <= #"9"
707 then yyQ111(strm', yyMATCH(strm, yyAction47, yyNO_MATCH))
708 else yyAction47(strm, yyNO_MATCH)
709 else if inp = #"`"
710 then yyAction47(strm, yyNO_MATCH)
711 else if inp < #"`"
712 then if inp = #"["
713 then yyAction47(strm, yyNO_MATCH)
714 else if inp < #"["
715 then yyQ111(strm', yyMATCH(strm, yyAction47, yyNO_MATCH))
716 else if inp = #"_"
717 then yyQ111(strm', yyMATCH(strm, yyAction47, yyNO_MATCH))
718 else yyAction47(strm, yyNO_MATCH)
719 else if inp <= #"z"
720 then yyQ111(strm', yyMATCH(strm, yyAction47, yyNO_MATCH))
721 else yyAction47(strm, yyNO_MATCH)
722 (* end case *))
723 fun yyQ110 (strm, lastMatch : yymatch) = (case (yygetc(strm))
724 of NONE => yyAction47(strm, yyNO_MATCH)
725 | SOME(inp, strm') =>
726 if inp = #"A"
727 then yyQ111(strm', yyMATCH(strm, yyAction47, yyNO_MATCH))
728 else if inp < #"A"
729 then if inp = #"("
730 then yyAction47(strm, yyNO_MATCH)
731 else if inp < #"("
732 then if inp = #"'"
733 then yyQ111(strm', yyMATCH(strm, yyAction47, yyNO_MATCH))
734 else yyAction47(strm, yyNO_MATCH)
735 else if inp = #"0"
736 then yyQ111(strm', yyMATCH(strm, yyAction47, yyNO_MATCH))
737 else if inp < #"0"
738 then yyAction47(strm, yyNO_MATCH)
739 else if inp <= #"9"
740 then yyQ111(strm', yyMATCH(strm, yyAction47, yyNO_MATCH))
741 else yyAction47(strm, yyNO_MATCH)
742 else if inp = #"`"
743 then yyAction47(strm, yyNO_MATCH)
744 else if inp < #"`"
745 then if inp = #"["
746 then yyAction47(strm, yyNO_MATCH)
747 else if inp < #"["
748 then yyQ111(strm', yyMATCH(strm, yyAction47, yyNO_MATCH))
749 else if inp = #"_"
750 then yyQ111(strm', yyMATCH(strm, yyAction47, yyNO_MATCH))
751 else yyAction47(strm, yyNO_MATCH)
752 else if inp <= #"z"
753 then yyQ111(strm', yyMATCH(strm, yyAction47, yyNO_MATCH))
754 else yyAction47(strm, yyNO_MATCH)
755 (* end case *))
756 fun yyQ109 (strm, lastMatch : yymatch) = (case (yygetc(strm))
757 of NONE => yyAction50(strm, yyNO_MATCH)
758 | SOME(inp, strm') => yyAction50(strm, yyNO_MATCH)
759 (* end case *))
760 fun yyQ108 (strm, lastMatch : yymatch) = (case (yygetc(strm))
761 of NONE => yyAction51(strm, yyNO_MATCH)
762 | SOME(inp, strm') => yyAction51(strm, yyNO_MATCH)
763 (* end case *))
764 fun yyQ107 (strm, lastMatch : yymatch) = (case (yygetc(strm))
765 of NONE => yyAction49(strm, yyNO_MATCH)
766 | SOME(inp, strm') => yyAction49(strm, yyNO_MATCH)
767 (* end case *))
768 fun yyQ106 (strm, lastMatch : yymatch) = (case (yygetc(strm))
769 of NONE => yyAction48(strm, yyNO_MATCH)
770 | SOME(inp, strm') => yyAction48(strm, yyNO_MATCH)
771 (* end case *))
772 fun yyQ105 (strm, lastMatch : yymatch) = (case (yygetc(strm))
773 of NONE => yyAction48(strm, yyNO_MATCH)
774 | SOME(inp, strm') => yyAction48(strm, yyNO_MATCH)
775 (* end case *))
776 fun yyQ42 (strm, lastMatch : yymatch) = (case (yygetc(strm))
777 of NONE => yyAction60(strm, yyNO_MATCH)
778 | SOME(inp, strm') => yyAction60(strm, yyNO_MATCH)
779 (* end case *))
780 fun yyQ5 (strm, lastMatch : yymatch) = (case (yygetc(strm))
781 of NONE =>
782 if yyInput.eof(!(yystrm))
783 then UserDeclarations.eof(yyarg)
784 else yystuck(lastMatch)
785 | SOME(inp, strm') =>
786 if inp = #"-"
787 then yyQ42(strm', lastMatch)
788 else if inp < #"-"
789 then if inp = #"\r"
790 then yyQ105(strm', lastMatch)
791 else if inp < #"\r"
792 then if inp = #"\n"
793 then yyQ106(strm', lastMatch)
794 else if inp < #"\n"
795 then if inp = #"\t"
796 then yyQ105(strm', lastMatch)
797 else yyQ42(strm', lastMatch)
798 else yyQ42(strm', lastMatch)
799 else if inp = #"!"
800 then yyQ42(strm', lastMatch)
801 else if inp < #"!"
802 then if inp = #" "
803 then yyQ105(strm', lastMatch)
804 else yyQ42(strm', lastMatch)
805 else if inp = #","
806 then yyQ107(strm', lastMatch)
807 else yyQ42(strm', lastMatch)
808 else if inp = #"?"
809 then yyQ42(strm', lastMatch)
810 else if inp < #"?"
811 then if inp = #"<"
812 then yyQ42(strm', lastMatch)
813 else if inp < #"<"
814 then if inp = #";"
815 then yyQ108(strm', lastMatch)
816 else yyQ42(strm', lastMatch)
817 else if inp = #">"
818 then yyQ109(strm', lastMatch)
819 else yyQ42(strm', lastMatch)
820 else if inp = #"["
821 then yyQ42(strm', lastMatch)
822 else if inp < #"["
823 then if inp <= #"@"
824 then yyQ42(strm', lastMatch)
825 else yyQ110(strm', lastMatch)
826 else if inp = #"a"
827 then yyQ110(strm', lastMatch)
828 else if inp < #"a"
829 then yyQ42(strm', lastMatch)
830 else if inp <= #"z"
831 then yyQ110(strm', lastMatch)
832 else yyQ42(strm', lastMatch)
833 (* end case *))
834 fun yyQ103 (strm, lastMatch : yymatch) = (case (yygetc(strm))
835 of NONE => yyAction40(strm, yyNO_MATCH)
836 | SOME(inp, strm') => yyAction40(strm, yyNO_MATCH)
837 (* end case *))
838 fun yyQ102 (strm, lastMatch : yymatch) = (case (yygetc(strm))
839 of NONE => yyAction38(strm, yyNO_MATCH)
840 | SOME(inp, strm') => yyAction38(strm, yyNO_MATCH)
841 (* end case *))
842 fun yyQ37 (strm, lastMatch : yymatch) = (case (yygetc(strm))
843 of NONE => yyAction43(strm, yyNO_MATCH)
844 | SOME(inp, strm') => yyAction43(strm, yyNO_MATCH)
845 (* end case *))
846 fun yyQ36 (strm, lastMatch : yymatch) = (case (yygetc(strm))
847 of NONE => yystuck(lastMatch)
848 | SOME(inp, strm') =>
849 if inp = #"A"
850 then yyQ37(strm', lastMatch)
851 else if inp < #"A"
852 then if inp = #"0"
853 then yyQ37(strm', lastMatch)
854 else if inp < #"0"
855 then yystuck(lastMatch)
856 else if inp <= #"9"
857 then yyQ37(strm', lastMatch)
858 else yystuck(lastMatch)
859 else if inp = #"a"
860 then yyQ37(strm', lastMatch)
861 else if inp < #"a"
862 then if inp <= #"F"
863 then yyQ37(strm', lastMatch)
864 else yystuck(lastMatch)
865 else if inp <= #"f"
866 then yyQ37(strm', lastMatch)
867 else yystuck(lastMatch)
868 (* end case *))
869 fun yyQ35 (strm, lastMatch : yymatch) = (case (yygetc(strm))
870 of NONE => yystuck(lastMatch)
871 | SOME(inp, strm') =>
872 if inp = #"A"
873 then yyQ36(strm', lastMatch)
874 else if inp < #"A"
875 then if inp = #"0"
876 then yyQ36(strm', lastMatch)
877 else if inp < #"0"
878 then yystuck(lastMatch)
879 else if inp <= #"9"
880 then yyQ36(strm', lastMatch)
881 else yystuck(lastMatch)
882 else if inp = #"a"
883 then yyQ36(strm', lastMatch)
884 else if inp < #"a"
885 then if inp <= #"F"
886 then yyQ36(strm', lastMatch)
887 else yystuck(lastMatch)
888 else if inp <= #"f"
889 then yyQ36(strm', lastMatch)
890 else yystuck(lastMatch)
891 (* end case *))
892 fun yyQ34 (strm, lastMatch : yymatch) = (case (yygetc(strm))
893 of NONE => yystuck(lastMatch)
894 | SOME(inp, strm') =>
895 if inp = #"A"
896 then yyQ35(strm', lastMatch)
897 else if inp < #"A"
898 then if inp = #"0"
899 then yyQ35(strm', lastMatch)
900 else if inp < #"0"
901 then yystuck(lastMatch)
902 else if inp <= #"9"
903 then yyQ35(strm', lastMatch)
904 else yystuck(lastMatch)
905 else if inp = #"a"
906 then yyQ35(strm', lastMatch)
907 else if inp < #"a"
908 then if inp <= #"F"
909 then yyQ35(strm', lastMatch)
910 else yystuck(lastMatch)
911 else if inp <= #"f"
912 then yyQ35(strm', lastMatch)
913 else yystuck(lastMatch)
914 (* end case *))
915 fun yyQ33 (strm, lastMatch : yymatch) = (case (yygetc(strm))
916 of NONE => yyAction45(strm, yyNO_MATCH)
917 | SOME(inp, strm') =>
918 if inp = #"A"
919 then yyQ34(strm', yyMATCH(strm, yyAction45, yyNO_MATCH))
920 else if inp < #"A"
921 then if inp = #"0"
922 then yyQ34(strm', yyMATCH(strm, yyAction45, yyNO_MATCH))
923 else if inp < #"0"
924 then yyAction45(strm, yyNO_MATCH)
925 else if inp <= #"9"
926 then yyQ34(strm', yyMATCH(strm, yyAction45, yyNO_MATCH))
927 else yyAction45(strm, yyNO_MATCH)
928 else if inp = #"a"
929 then yyQ34(strm', yyMATCH(strm, yyAction45, yyNO_MATCH))
930 else if inp < #"a"
931 then if inp <= #"F"
932 then yyQ34(strm', yyMATCH(strm, yyAction45, yyNO_MATCH))
933 else yyAction45(strm, yyNO_MATCH)
934 else if inp <= #"f"
935 then yyQ34(strm', yyMATCH(strm, yyAction45, yyNO_MATCH))
936 else yyAction45(strm, yyNO_MATCH)
937 (* end case *))
938 fun yyQ32 (strm, lastMatch : yymatch) = (case (yygetc(strm))
939 of NONE => yyAction44(strm, yyNO_MATCH)
940 | SOME(inp, strm') => yyAction44(strm, yyNO_MATCH)
941 (* end case *))
942 fun yyQ39 (strm, lastMatch : yymatch) = (case (yygetc(strm))
943 of NONE => yyAction42(strm, yyNO_MATCH)
944 | SOME(inp, strm') => yyAction42(strm, yyNO_MATCH)
945 (* end case *))
946 fun yyQ38 (strm, lastMatch : yymatch) = (case (yygetc(strm))
947 of NONE => yystuck(lastMatch)
948 | SOME(inp, strm') =>
949 if inp = #"0"
950 then yyQ39(strm', lastMatch)
951 else if inp < #"0"
952 then yystuck(lastMatch)
953 else if inp <= #"9"
954 then yyQ39(strm', lastMatch)
955 else yystuck(lastMatch)
956 (* end case *))
957 fun yyQ31 (strm, lastMatch : yymatch) = (case (yygetc(strm))
958 of NONE => yyAction45(strm, yyNO_MATCH)
959 | SOME(inp, strm') =>
960 if inp = #"0"
961 then yyQ38(strm', yyMATCH(strm, yyAction45, yyNO_MATCH))
962 else if inp < #"0"
963 then yyAction45(strm, yyNO_MATCH)
964 else if inp <= #"9"
965 then yyQ38(strm', yyMATCH(strm, yyAction45, yyNO_MATCH))
966 else yyAction45(strm, yyNO_MATCH)
967 (* end case *))
968 fun yyQ30 (strm, lastMatch : yymatch) = (case (yygetc(strm))
969 of NONE => yyAction42(strm, yyNO_MATCH)
970 | SOME(inp, strm') => yyAction42(strm, yyNO_MATCH)
971 (* end case *))
972 fun yyQ29 (strm, lastMatch : yymatch) = (case (yygetc(strm))
973 of NONE => yyAction45(strm, yyNO_MATCH)
974 | SOME(inp, strm') => yyAction45(strm, yyNO_MATCH)
975 (* end case *))
976 fun yyQ25 (strm, lastMatch : yymatch) = (case (yygetc(strm))
977 of NONE => yyAction46(strm, yyNO_MATCH)
978 | SOME(inp, strm') =>
979 if inp = #"c"
980 then yyQ29(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
981 else if inp < #"c"
982 then if inp = #"0"
983 then yyQ31(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
984 else if inp < #"0"
985 then if inp = #"\v"
986 then yyQ29(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
987 else if inp < #"\v"
988 then if inp = #"\n"
989 then yyAction46(strm, yyNO_MATCH)
990 else yyQ29(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
991 else if inp = #"\""
992 then yyQ30(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
993 else yyQ29(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
994 else if inp = #"\\"
995 then yyQ30(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
996 else if inp < #"\\"
997 then if inp <= #"9"
998 then yyQ31(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
999 else yyQ29(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
1000 else if inp = #"b"
1001 then yyQ30(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
1002 else yyQ29(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
1003 else if inp = #"r"
1004 then yyQ30(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
1005 else if inp < #"r"
1006 then if inp = #"i"
1007 then yyQ29(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
1008 else if inp < #"i"
1009 then if inp = #"h"
1010 then yyQ32(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
1011 else yyQ29(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
1012 else if inp = #"n"
1013 then yyQ30(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
1014 else yyQ29(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
1015 else if inp = #"u"
1016 then yyQ33(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
1017 else if inp < #"u"
1018 then if inp = #"s"
1019 then yyQ29(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
1020 else yyQ30(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
1021 else yyQ29(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
1022 (* end case *))
1023 fun yyQ104 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1024 of NONE => yyAction37(strm, yyNO_MATCH)
1025 | SOME(inp, strm') => yyAction37(strm, yyNO_MATCH)
1026 (* end case *))
1027 fun yyQ101 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1028 of NONE => yyAction39(strm, yyNO_MATCH)
1029 | SOME(inp, strm') =>
1030 if inp = #"]"
1031 then yyQ104(strm', yyMATCH(strm, yyAction39, yyNO_MATCH))
1032 else yyAction39(strm, yyNO_MATCH)
1033 (* end case *))
1034 fun yyQ8 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1035 of NONE => yyAction46(strm, yyNO_MATCH)
1036 | SOME(inp, strm') => yyAction46(strm, yyNO_MATCH)
1037 (* end case *))
1038 fun yyQ4 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1039 of NONE =>
1040 if yyInput.eof(!(yystrm))
1041 then UserDeclarations.eof(yyarg)
1042 else yystuck(lastMatch)
1043 | SOME(inp, strm') =>
1044 if inp = #"."
1045 then yyQ8(strm', lastMatch)
1046 else if inp < #"."
1047 then if inp = #"\v"
1048 then yyQ8(strm', lastMatch)
1049 else if inp < #"\v"
1050 then if inp = #"\n"
1051 then if yyInput.eof(!(yystrm))
1052 then UserDeclarations.eof(yyarg)
1053 else yystuck(lastMatch)
1054 else yyQ8(strm', lastMatch)
1055 else if inp = #"-"
1056 then yyQ101(strm', lastMatch)
1057 else yyQ8(strm', lastMatch)
1058 else if inp = #"]"
1059 then yyQ102(strm', lastMatch)
1060 else if inp < #"]"
1061 then if inp = #"\\"
1062 then yyQ25(strm', lastMatch)
1063 else yyQ8(strm', lastMatch)
1064 else if inp = #"^"
1065 then yyQ103(strm', lastMatch)
1066 else yyQ8(strm', lastMatch)
1067 (* end case *))
1068 fun yyQ100 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1069 of NONE => yyAction41(strm, yyNO_MATCH)
1070 | SOME(inp, strm') => yyAction41(strm, yyNO_MATCH)
1071 (* end case *))
1072 fun yyQ3 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1073 of NONE =>
1074 if yyInput.eof(!(yystrm))
1075 then UserDeclarations.eof(yyarg)
1076 else yystuck(lastMatch)
1077 | SOME(inp, strm') =>
1078 if inp = #"\""
1079 then yyQ100(strm', lastMatch)
1080 else if inp < #"\""
1081 then if inp = #"\n"
1082 then if yyInput.eof(!(yystrm))
1083 then UserDeclarations.eof(yyarg)
1084 else yystuck(lastMatch)
1085 else yyQ8(strm', lastMatch)
1086 else if inp = #"\\"
1087 then yyQ25(strm', lastMatch)
1088 else yyQ8(strm', lastMatch)
1089 (* end case *))
1090 fun yyQ97 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1091 of NONE => yyAction36(strm, yyNO_MATCH)
1092 | SOME(inp, strm') => yyAction36(strm, yyNO_MATCH)
1093 (* end case *))
1094 fun yyQ98 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1095 of NONE => yyAction33(strm, yyNO_MATCH)
1096 | SOME(inp, strm') =>
1097 if inp = #"A"
1098 then yyQ98(strm', yyMATCH(strm, yyAction33, yyNO_MATCH))
1099 else if inp < #"A"
1100 then if inp = #"("
1101 then yyAction33(strm, yyNO_MATCH)
1102 else if inp < #"("
1103 then if inp = #"'"
1104 then yyQ98(strm', yyMATCH(strm, yyAction33, yyNO_MATCH))
1105 else yyAction33(strm, yyNO_MATCH)
1106 else if inp = #"0"
1107 then yyQ98(strm', yyMATCH(strm, yyAction33, yyNO_MATCH))
1108 else if inp < #"0"
1109 then yyAction33(strm, yyNO_MATCH)
1110 else if inp <= #"9"
1111 then yyQ98(strm', yyMATCH(strm, yyAction33, yyNO_MATCH))
1112 else yyAction33(strm, yyNO_MATCH)
1113 else if inp = #"`"
1114 then yyAction33(strm, yyNO_MATCH)
1115 else if inp < #"`"
1116 then if inp = #"["
1117 then yyAction33(strm, yyNO_MATCH)
1118 else if inp < #"["
1119 then yyQ98(strm', yyMATCH(strm, yyAction33, yyNO_MATCH))
1120 else if inp = #"_"
1121 then yyQ98(strm', yyMATCH(strm, yyAction33, yyNO_MATCH))
1122 else yyAction33(strm, yyNO_MATCH)
1123 else if inp <= #"z"
1124 then yyQ98(strm', yyMATCH(strm, yyAction33, yyNO_MATCH))
1125 else yyAction33(strm, yyNO_MATCH)
1126 (* end case *))
1127 fun yyQ96 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1128 of NONE => yyAction33(strm, yyNO_MATCH)
1129 | SOME(inp, strm') =>
1130 if inp = #"A"
1131 then yyQ98(strm', yyMATCH(strm, yyAction33, yyNO_MATCH))
1132 else if inp < #"A"
1133 then if inp = #"("
1134 then yyAction33(strm, yyNO_MATCH)
1135 else if inp < #"("
1136 then if inp = #"'"
1137 then yyQ98(strm', yyMATCH(strm, yyAction33, yyNO_MATCH))
1138 else yyAction33(strm, yyNO_MATCH)
1139 else if inp = #"0"
1140 then yyQ98(strm', yyMATCH(strm, yyAction33, yyNO_MATCH))
1141 else if inp < #"0"
1142 then yyAction33(strm, yyNO_MATCH)
1143 else if inp <= #"9"
1144 then yyQ98(strm', yyMATCH(strm, yyAction33, yyNO_MATCH))
1145 else yyAction33(strm, yyNO_MATCH)
1146 else if inp = #"`"
1147 then yyAction33(strm, yyNO_MATCH)
1148 else if inp < #"`"
1149 then if inp = #"["
1150 then yyAction33(strm, yyNO_MATCH)
1151 else if inp < #"["
1152 then yyQ98(strm', yyMATCH(strm, yyAction33, yyNO_MATCH))
1153 else if inp = #"_"
1154 then yyQ98(strm', yyMATCH(strm, yyAction33, yyNO_MATCH))
1155 else yyAction33(strm, yyNO_MATCH)
1156 else if inp <= #"z"
1157 then yyQ98(strm', yyMATCH(strm, yyAction33, yyNO_MATCH))
1158 else yyAction33(strm, yyNO_MATCH)
1159 (* end case *))
1160 fun yyQ99 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1161 of NONE => yyAction34(strm, yyNO_MATCH)
1162 | SOME(inp, strm') =>
1163 if inp = #"0"
1164 then yyQ99(strm', yyMATCH(strm, yyAction34, yyNO_MATCH))
1165 else if inp < #"0"
1166 then yyAction34(strm, yyNO_MATCH)
1167 else if inp <= #"9"
1168 then yyQ99(strm', yyMATCH(strm, yyAction34, yyNO_MATCH))
1169 else yyAction34(strm, yyNO_MATCH)
1170 (* end case *))
1171 fun yyQ95 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1172 of NONE => yyAction34(strm, yyNO_MATCH)
1173 | SOME(inp, strm') =>
1174 if inp = #"0"
1175 then yyQ99(strm', yyMATCH(strm, yyAction34, yyNO_MATCH))
1176 else if inp < #"0"
1177 then yyAction34(strm, yyNO_MATCH)
1178 else if inp <= #"9"
1179 then yyQ99(strm', yyMATCH(strm, yyAction34, yyNO_MATCH))
1180 else yyAction34(strm, yyNO_MATCH)
1181 (* end case *))
1182 fun yyQ94 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1183 of NONE => yyAction35(strm, yyNO_MATCH)
1184 | SOME(inp, strm') => yyAction35(strm, yyNO_MATCH)
1185 (* end case *))
1186 fun yyQ93 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1187 of NONE => yyAction32(strm, yyNO_MATCH)
1188 | SOME(inp, strm') => yyAction32(strm, yyNO_MATCH)
1189 (* end case *))
1190 fun yyQ92 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1191 of NONE => yyAction32(strm, yyNO_MATCH)
1192 | SOME(inp, strm') => yyAction32(strm, yyNO_MATCH)
1193 (* end case *))
1194 fun yyQ2 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1195 of NONE =>
1196 if yyInput.eof(!(yystrm))
1197 then UserDeclarations.eof(yyarg)
1198 else yystuck(lastMatch)
1199 | SOME(inp, strm') =>
1200 if inp = #"-"
1201 then yyQ42(strm', lastMatch)
1202 else if inp < #"-"
1203 then if inp = #"\r"
1204 then yyQ92(strm', lastMatch)
1205 else if inp < #"\r"
1206 then if inp = #"\n"
1207 then yyQ93(strm', lastMatch)
1208 else if inp < #"\n"
1209 then if inp = #"\t"
1210 then yyQ92(strm', lastMatch)
1211 else yyQ42(strm', lastMatch)
1212 else yyQ42(strm', lastMatch)
1213 else if inp = #"!"
1214 then yyQ42(strm', lastMatch)
1215 else if inp < #"!"
1216 then if inp = #" "
1217 then yyQ92(strm', lastMatch)
1218 else yyQ42(strm', lastMatch)
1219 else if inp = #","
1220 then yyQ94(strm', lastMatch)
1221 else yyQ42(strm', lastMatch)
1222 else if inp = #"["
1223 then yyQ42(strm', lastMatch)
1224 else if inp < #"["
1225 then if inp = #":"
1226 then yyQ42(strm', lastMatch)
1227 else if inp < #":"
1228 then if inp <= #"/"
1229 then yyQ42(strm', lastMatch)
1230 else yyQ95(strm', lastMatch)
1231 else if inp <= #"@"
1232 then yyQ42(strm', lastMatch)
1233 else yyQ96(strm', lastMatch)
1234 else if inp = #"{"
1235 then yyQ42(strm', lastMatch)
1236 else if inp < #"{"
1237 then if inp <= #"`"
1238 then yyQ42(strm', lastMatch)
1239 else yyQ96(strm', lastMatch)
1240 else if inp = #"}"
1241 then yyQ97(strm', lastMatch)
1242 else yyQ42(strm', lastMatch)
1243 (* end case *))
1244 fun yyQ48 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1245 of NONE => yyAction12(strm, yyNO_MATCH)
1246 | SOME(inp, strm') =>
1247 if inp = #"A"
1248 then yyQ48(strm', yyMATCH(strm, yyAction12, yyNO_MATCH))
1249 else if inp < #"A"
1250 then if inp = #"("
1251 then yyAction12(strm, yyNO_MATCH)
1252 else if inp < #"("
1253 then if inp = #"'"
1254 then yyQ48(strm', yyMATCH(strm, yyAction12, yyNO_MATCH))
1255 else yyAction12(strm, yyNO_MATCH)
1256 else if inp = #"0"
1257 then yyQ48(strm', yyMATCH(strm, yyAction12, yyNO_MATCH))
1258 else if inp < #"0"
1259 then yyAction12(strm, yyNO_MATCH)
1260 else if inp <= #"9"
1261 then yyQ48(strm', yyMATCH(strm, yyAction12, yyNO_MATCH))
1262 else yyAction12(strm, yyNO_MATCH)
1263 else if inp = #"`"
1264 then yyAction12(strm, yyNO_MATCH)
1265 else if inp < #"`"
1266 then if inp = #"["
1267 then yyAction12(strm, yyNO_MATCH)
1268 else if inp < #"["
1269 then yyQ48(strm', yyMATCH(strm, yyAction12, yyNO_MATCH))
1270 else if inp = #"_"
1271 then yyQ48(strm', yyMATCH(strm, yyAction12, yyNO_MATCH))
1272 else yyAction12(strm, yyNO_MATCH)
1273 else if inp <= #"z"
1274 then yyQ48(strm', yyMATCH(strm, yyAction12, yyNO_MATCH))
1275 else yyAction12(strm, yyNO_MATCH)
1276 (* end case *))
1277 fun yyQ47 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1278 of NONE => yyAction12(strm, yyNO_MATCH)
1279 | SOME(inp, strm') =>
1280 if inp = #"A"
1281 then yyQ48(strm', yyMATCH(strm, yyAction12, yyNO_MATCH))
1282 else if inp < #"A"
1283 then if inp = #"("
1284 then yyAction12(strm, yyNO_MATCH)
1285 else if inp < #"("
1286 then if inp = #"'"
1287 then yyQ48(strm', yyMATCH(strm, yyAction12, yyNO_MATCH))
1288 else yyAction12(strm, yyNO_MATCH)
1289 else if inp = #"0"
1290 then yyQ48(strm', yyMATCH(strm, yyAction12, yyNO_MATCH))
1291 else if inp < #"0"
1292 then yyAction12(strm, yyNO_MATCH)
1293 else if inp <= #"9"
1294 then yyQ48(strm', yyMATCH(strm, yyAction12, yyNO_MATCH))
1295 else yyAction12(strm, yyNO_MATCH)
1296 else if inp = #"`"
1297 then yyAction12(strm, yyNO_MATCH)
1298 else if inp < #"`"
1299 then if inp = #"["
1300 then yyAction12(strm, yyNO_MATCH)
1301 else if inp < #"["
1302 then yyQ48(strm', yyMATCH(strm, yyAction12, yyNO_MATCH))
1303 else if inp = #"_"
1304 then yyQ48(strm', yyMATCH(strm, yyAction12, yyNO_MATCH))
1305 else yyAction12(strm, yyNO_MATCH)
1306 else if inp <= #"z"
1307 then yyQ48(strm', yyMATCH(strm, yyAction12, yyNO_MATCH))
1308 else yyAction12(strm, yyNO_MATCH)
1309 (* end case *))
1310 fun yyQ46 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1311 of NONE => yyAction13(strm, yyNO_MATCH)
1312 | SOME(inp, strm') => yyAction13(strm, yyNO_MATCH)
1313 (* end case *))
1314 fun yyQ62 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1315 of NONE => yyAction10(strm, yyNO_MATCH)
1316 | SOME(inp, strm') => yyAction10(strm, yyNO_MATCH)
1317 (* end case *))
1318 fun yyQ61 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1319 of NONE => yystuck(lastMatch)
1320 | SOME(inp, strm') =>
1321 if inp = #"e"
1322 then yyQ62(strm', lastMatch)
1323 else yystuck(lastMatch)
1324 (* end case *))
1325 fun yyQ60 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1326 of NONE => yystuck(lastMatch)
1327 | SOME(inp, strm') =>
1328 if inp = #"d"
1329 then yyQ61(strm', lastMatch)
1330 else yystuck(lastMatch)
1331 (* end case *))
1332 fun yyQ59 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1333 of NONE => yystuck(lastMatch)
1334 | SOME(inp, strm') =>
1335 if inp = #"o"
1336 then yyQ60(strm', lastMatch)
1337 else yystuck(lastMatch)
1338 (* end case *))
1339 fun yyQ58 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1340 of NONE => yystuck(lastMatch)
1341 | SOME(inp, strm') =>
1342 if inp = #"c"
1343 then yyQ59(strm', lastMatch)
1344 else yystuck(lastMatch)
1345 (* end case *))
1346 fun yyQ57 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1347 of NONE => yystuck(lastMatch)
1348 | SOME(inp, strm') =>
1349 if inp = #"i"
1350 then yyQ58(strm', lastMatch)
1351 else yystuck(lastMatch)
1352 (* end case *))
1353 fun yyQ56 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1354 of NONE => yystuck(lastMatch)
1355 | SOME(inp, strm') =>
1356 if inp = #"n"
1357 then yyQ57(strm', lastMatch)
1358 else yystuck(lastMatch)
1359 (* end case *))
1360 fun yyQ70 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1361 of NONE => yyAction6(strm, yyNO_MATCH)
1362 | SOME(inp, strm') => yyAction6(strm, yyNO_MATCH)
1363 (* end case *))
1364 fun yyQ69 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1365 of NONE => yystuck(lastMatch)
1366 | SOME(inp, strm') =>
1367 if inp = #"e"
1368 then yyQ70(strm', lastMatch)
1369 else yystuck(lastMatch)
1370 (* end case *))
1371 fun yyQ68 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1372 of NONE => yystuck(lastMatch)
1373 | SOME(inp, strm') =>
1374 if inp = #"r"
1375 then yyQ69(strm', lastMatch)
1376 else yystuck(lastMatch)
1377 (* end case *))
1378 fun yyQ67 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1379 of NONE => yystuck(lastMatch)
1380 | SOME(inp, strm') =>
1381 if inp = #"u"
1382 then yyQ68(strm', lastMatch)
1383 else yystuck(lastMatch)
1384 (* end case *))
1385 fun yyQ66 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1386 of NONE => yystuck(lastMatch)
1387 | SOME(inp, strm') =>
1388 if inp = #"t"
1389 then yyQ67(strm', lastMatch)
1390 else yystuck(lastMatch)
1391 (* end case *))
1392 fun yyQ65 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1393 of NONE => yystuck(lastMatch)
1394 | SOME(inp, strm') =>
1395 if inp = #"c"
1396 then yyQ66(strm', lastMatch)
1397 else yystuck(lastMatch)
1398 (* end case *))
1399 fun yyQ64 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1400 of NONE => yystuck(lastMatch)
1401 | SOME(inp, strm') =>
1402 if inp = #"u"
1403 then yyQ65(strm', lastMatch)
1404 else yystuck(lastMatch)
1405 (* end case *))
1406 fun yyQ63 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1407 of NONE => yystuck(lastMatch)
1408 | SOME(inp, strm') =>
1409 if inp = #"r"
1410 then yyQ64(strm', lastMatch)
1411 else yystuck(lastMatch)
1412 (* end case *))
1413 fun yyQ55 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1414 of NONE => yyAction4(strm, yyNO_MATCH)
1415 | SOME(inp, strm') =>
1416 if inp = #"t"
1417 then yyQ63(strm', yyMATCH(strm, yyAction4, yyNO_MATCH))
1418 else yyAction4(strm, yyNO_MATCH)
1419 (* end case *))
1420 fun yyQ75 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1421 of NONE => yyAction9(strm, lastMatch)
1422 | SOME(inp, strm') => yyAction9(strm, lastMatch)
1423 (* end case *))
1424 fun yyQ74 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1425 of NONE => yystuck(lastMatch)
1426 | SOME(inp, strm') =>
1427 if inp = #"t"
1428 then yyQ75(strm', lastMatch)
1429 else yystuck(lastMatch)
1430 (* end case *))
1431 fun yyQ73 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1432 of NONE => yystuck(lastMatch)
1433 | SOME(inp, strm') =>
1434 if inp = #"c"
1435 then yyQ74(strm', lastMatch)
1436 else yystuck(lastMatch)
1437 (* end case *))
1438 fun yyQ72 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1439 of NONE => yystuck(lastMatch)
1440 | SOME(inp, strm') =>
1441 if inp = #"e"
1442 then yyQ73(strm', lastMatch)
1443 else yystuck(lastMatch)
1444 (* end case *))
1445 fun yyQ71 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1446 of NONE => yystuck(lastMatch)
1447 | SOME(inp, strm') =>
1448 if inp = #"j"
1449 then yyQ72(strm', lastMatch)
1450 else yystuck(lastMatch)
1451 (* end case *))
1452 fun yyQ54 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1453 of NONE => yystuck(lastMatch)
1454 | SOME(inp, strm') =>
1455 if inp = #"e"
1456 then yyQ71(strm', lastMatch)
1457 else yystuck(lastMatch)
1458 (* end case *))
1459 fun yyQ81 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1460 of NONE => yyAction5(strm, yyNO_MATCH)
1461 | SOME(inp, strm') => yyAction5(strm, yyNO_MATCH)
1462 (* end case *))
1463 fun yyQ80 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1464 of NONE => yystuck(lastMatch)
1465 | SOME(inp, strm') =>
1466 if inp = #"\^N"
1467 then yystuck(lastMatch)
1468 else if inp < #"\^N"
1469 then if inp = #"\v"
1470 then yystuck(lastMatch)
1471 else if inp < #"\v"
1472 then if inp <= #"\b"
1473 then yystuck(lastMatch)
1474 else yyQ80(strm', lastMatch)
1475 else if inp = #"\r"
1476 then yyQ80(strm', lastMatch)
1477 else yystuck(lastMatch)
1478 else if inp = #"!"
1479 then yystuck(lastMatch)
1480 else if inp < #"!"
1481 then if inp = #" "
1482 then yyQ80(strm', lastMatch)
1483 else yystuck(lastMatch)
1484 else if inp = #"("
1485 then yyQ81(strm', lastMatch)
1486 else yystuck(lastMatch)
1487 (* end case *))
1488 fun yyQ79 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1489 of NONE => yystuck(lastMatch)
1490 | SOME(inp, strm') =>
1491 if inp = #"r"
1492 then yyQ80(strm', lastMatch)
1493 else yystuck(lastMatch)
1494 (* end case *))
1495 fun yyQ78 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1496 of NONE => yystuck(lastMatch)
1497 | SOME(inp, strm') =>
1498 if inp = #"e"
1499 then yyQ79(strm', lastMatch)
1500 else yystuck(lastMatch)
1501 (* end case *))
1502 fun yyQ77 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1503 of NONE => yystuck(lastMatch)
1504 | SOME(inp, strm') =>
1505 if inp = #"d"
1506 then yyQ78(strm', lastMatch)
1507 else yystuck(lastMatch)
1508 (* end case *))
1509 fun yyQ76 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1510 of NONE => yystuck(lastMatch)
1511 | SOME(inp, strm') =>
1512 if inp = #"a"
1513 then yyQ77(strm', lastMatch)
1514 else yystuck(lastMatch)
1515 (* end case *))
1516 fun yyQ53 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1517 of NONE => yystuck(lastMatch)
1518 | SOME(inp, strm') =>
1519 if inp = #"e"
1520 then yyQ76(strm', lastMatch)
1521 else yystuck(lastMatch)
1522 (* end case *))
1523 fun yyQ84 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1524 of NONE => yyAction11(strm, yyNO_MATCH)
1525 | SOME(inp, strm') => yyAction11(strm, yyNO_MATCH)
1526 (* end case *))
1527 fun yyQ83 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1528 of NONE => yystuck(lastMatch)
1529 | SOME(inp, strm') =>
1530 if inp = #"l"
1531 then yyQ84(strm', lastMatch)
1532 else yystuck(lastMatch)
1533 (* end case *))
1534 fun yyQ82 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1535 of NONE => yystuck(lastMatch)
1536 | SOME(inp, strm') =>
1537 if inp = #"l"
1538 then yyQ83(strm', lastMatch)
1539 else yystuck(lastMatch)
1540 (* end case *))
1541 fun yyQ52 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1542 of NONE => yystuck(lastMatch)
1543 | SOME(inp, strm') =>
1544 if inp = #"u"
1545 then yyQ82(strm', lastMatch)
1546 else yystuck(lastMatch)
1547 (* end case *))
1548 fun yyQ88 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1549 of NONE => yyAction8(strm, yyNO_MATCH)
1550 | SOME(inp, strm') => yyAction8(strm, yyNO_MATCH)
1551 (* end case *))
1552 fun yyQ87 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1553 of NONE => yystuck(lastMatch)
1554 | SOME(inp, strm') =>
1555 if inp = #"t"
1556 then yyQ88(strm', lastMatch)
1557 else yystuck(lastMatch)
1558 (* end case *))
1559 fun yyQ86 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1560 of NONE => yystuck(lastMatch)
1561 | SOME(inp, strm') =>
1562 if inp = #"n"
1563 then yyQ87(strm', lastMatch)
1564 else yystuck(lastMatch)
1565 (* end case *))
1566 fun yyQ85 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1567 of NONE => yystuck(lastMatch)
1568 | SOME(inp, strm') =>
1569 if inp = #"u"
1570 then yyQ86(strm', lastMatch)
1571 else yystuck(lastMatch)
1572 (* end case *))
1573 fun yyQ51 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1574 of NONE => yystuck(lastMatch)
1575 | SOME(inp, strm') =>
1576 if inp = #"o"
1577 then yyQ85(strm', lastMatch)
1578 else yystuck(lastMatch)
1579 (* end case *))
1580 fun yyQ91 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1581 of NONE => yyAction7(strm, yyNO_MATCH)
1582 | SOME(inp, strm') => yyAction7(strm, yyNO_MATCH)
1583 (* end case *))
1584 fun yyQ90 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1585 of NONE => yystuck(lastMatch)
1586 | SOME(inp, strm') =>
1587 if inp = #"\^N"
1588 then yystuck(lastMatch)
1589 else if inp < #"\^N"
1590 then if inp = #"\v"
1591 then yystuck(lastMatch)
1592 else if inp < #"\v"
1593 then if inp <= #"\b"
1594 then yystuck(lastMatch)
1595 else yyQ90(strm', lastMatch)
1596 else if inp = #"\r"
1597 then yyQ90(strm', lastMatch)
1598 else yystuck(lastMatch)
1599 else if inp = #"!"
1600 then yystuck(lastMatch)
1601 else if inp < #"!"
1602 then if inp = #" "
1603 then yyQ90(strm', lastMatch)
1604 else yystuck(lastMatch)
1605 else if inp = #"("
1606 then yyQ91(strm', lastMatch)
1607 else yystuck(lastMatch)
1608 (* end case *))
1609 fun yyQ89 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1610 of NONE => yystuck(lastMatch)
1611 | SOME(inp, strm') =>
1612 if inp = #"g"
1613 then yyQ90(strm', lastMatch)
1614 else yystuck(lastMatch)
1615 (* end case *))
1616 fun yyQ50 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1617 of NONE => yystuck(lastMatch)
1618 | SOME(inp, strm') =>
1619 if inp = #"r"
1620 then yyQ89(strm', lastMatch)
1621 else yystuck(lastMatch)
1622 (* end case *))
1623 fun yyQ49 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1624 of NONE => yyAction3(strm, yyNO_MATCH)
1625 | SOME(inp, strm') => yyAction3(strm, yyNO_MATCH)
1626 (* end case *))
1627 fun yyQ45 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1628 of NONE => yyAction60(strm, yyNO_MATCH)
1629 | SOME(inp, strm') =>
1630 if inp = #"g"
1631 then yyAction60(strm, yyNO_MATCH)
1632 else if inp < #"g"
1633 then if inp = #"b"
1634 then yyAction60(strm, yyNO_MATCH)
1635 else if inp < #"b"
1636 then if inp = #"&"
1637 then yyAction60(strm, yyNO_MATCH)
1638 else if inp < #"&"
1639 then if inp = #"%"
1640 then yyQ49(strm', yyMATCH(strm, yyAction60, yyNO_MATCH))
1641 else yyAction60(strm, yyNO_MATCH)
1642 else if inp = #"a"
1643 then yyQ50(strm', yyMATCH(strm, yyAction60, yyNO_MATCH))
1644 else yyAction60(strm, yyNO_MATCH)
1645 else if inp = #"d"
1646 then yyAction60(strm, yyNO_MATCH)
1647 else if inp < #"d"
1648 then yyQ51(strm', yyMATCH(strm, yyAction60, yyNO_MATCH))
1649 else if inp = #"f"
1650 then yyQ52(strm', yyMATCH(strm, yyAction60, yyNO_MATCH))
1651 else yyAction60(strm, yyNO_MATCH)
1652 else if inp = #"s"
1653 then yyQ55(strm', yyMATCH(strm, yyAction60, yyNO_MATCH))
1654 else if inp < #"s"
1655 then if inp = #"i"
1656 then yyAction60(strm, yyNO_MATCH)
1657 else if inp < #"i"
1658 then yyQ53(strm', yyMATCH(strm, yyAction60, yyNO_MATCH))
1659 else if inp = #"r"
1660 then yyQ54(strm', yyMATCH(strm, yyAction60, yyNO_MATCH))
1661 else yyAction60(strm, yyNO_MATCH)
1662 else if inp = #"u"
1663 then yyQ56(strm', yyMATCH(strm, yyAction60, yyNO_MATCH))
1664 else yyAction60(strm, yyNO_MATCH)
1665 (* end case *))
1666 fun yyQ44 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1667 of NONE => yyAction2(strm, yyNO_MATCH)
1668 | SOME(inp, strm') => yyAction2(strm, yyNO_MATCH)
1669 (* end case *))
1670 fun yyQ43 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1671 of NONE => yyAction2(strm, yyNO_MATCH)
1672 | SOME(inp, strm') => yyAction2(strm, yyNO_MATCH)
1673 (* end case *))
1674 fun yyQ1 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1675 of NONE =>
1676 if yyInput.eof(!(yystrm))
1677 then UserDeclarations.eof(yyarg)
1678 else yystuck(lastMatch)
1679 | SOME(inp, strm') =>
1680 if inp = #"%"
1681 then yyQ45(strm', lastMatch)
1682 else if inp < #"%"
1683 then if inp = #"\r"
1684 then yyQ43(strm', lastMatch)
1685 else if inp < #"\r"
1686 then if inp = #"\n"
1687 then yyQ44(strm', lastMatch)
1688 else if inp < #"\n"
1689 then if inp = #"\t"
1690 then yyQ43(strm', lastMatch)
1691 else yyQ42(strm', lastMatch)
1692 else yyQ42(strm', lastMatch)
1693 else if inp = #" "
1694 then yyQ43(strm', lastMatch)
1695 else yyQ42(strm', lastMatch)
1696 else if inp = #"A"
1697 then yyQ47(strm', lastMatch)
1698 else if inp < #"A"
1699 then if inp = #"="
1700 then yyQ46(strm', lastMatch)
1701 else yyQ42(strm', lastMatch)
1702 else if inp = #"a"
1703 then yyQ47(strm', lastMatch)
1704 else if inp < #"a"
1705 then if inp <= #"Z"
1706 then yyQ47(strm', lastMatch)
1707 else yyQ42(strm', lastMatch)
1708 else if inp <= #"z"
1709 then yyQ47(strm', lastMatch)
1710 else yyQ42(strm', lastMatch)
1711 (* end case *))
1712 fun yyQ28 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1713 of NONE => yyAction18(strm, yyNO_MATCH)
1714 | SOME(inp, strm') => yyAction18(strm, yyNO_MATCH)
1715 (* end case *))
1716 fun yyQ27 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1717 of NONE => yyAction25(strm, yyNO_MATCH)
1718 | SOME(inp, strm') => yyAction25(strm, yyNO_MATCH)
1719 (* end case *))
1720 fun yyQ26 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1721 of NONE => yyAction24(strm, yyNO_MATCH)
1722 | SOME(inp, strm') => yyAction24(strm, yyNO_MATCH)
1723 (* end case *))
1724 fun yyQ24 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1725 of NONE => yyAction27(strm, yyNO_MATCH)
1726 | SOME(inp, strm') => yyAction27(strm, yyNO_MATCH)
1727 (* end case *))
1728 fun yyQ23 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1729 of NONE => yyAction15(strm, yyNO_MATCH)
1730 | SOME(inp, strm') => yyAction15(strm, yyNO_MATCH)
1731 (* end case *))
1732 fun yyQ22 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1733 of NONE => yyAction29(strm, yyNO_MATCH)
1734 | SOME(inp, strm') => yyAction29(strm, yyNO_MATCH)
1735 (* end case *))
1736 fun yyQ41 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1737 of NONE => yyAction30(strm, yyNO_MATCH)
1738 | SOME(inp, strm') => yyAction30(strm, yyNO_MATCH)
1739 (* end case *))
1740 fun yyQ40 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1741 of NONE => yystuck(lastMatch)
1742 | SOME(inp, strm') =>
1743 if inp = #"\^N"
1744 then yystuck(lastMatch)
1745 else if inp < #"\^N"
1746 then if inp = #"\v"
1747 then yystuck(lastMatch)
1748 else if inp < #"\v"
1749 then if inp <= #"\b"
1750 then yystuck(lastMatch)
1751 else yyQ40(strm', lastMatch)
1752 else if inp = #"\r"
1753 then yyQ40(strm', lastMatch)
1754 else yystuck(lastMatch)
1755 else if inp = #"!"
1756 then yystuck(lastMatch)
1757 else if inp < #"!"
1758 then if inp = #" "
1759 then yyQ40(strm', lastMatch)
1760 else yystuck(lastMatch)
1761 else if inp = #"("
1762 then yyQ41(strm', lastMatch)
1763 else yystuck(lastMatch)
1764 (* end case *))
1765 fun yyQ21 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1766 of NONE => yyAction46(strm, yyNO_MATCH)
1767 | SOME(inp, strm') =>
1768 if inp = #">"
1769 then yyQ40(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
1770 else yyAction46(strm, yyNO_MATCH)
1771 (* end case *))
1772 fun yyQ20 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1773 of NONE => yyAction28(strm, yyNO_MATCH)
1774 | SOME(inp, strm') => yyAction28(strm, yyNO_MATCH)
1775 (* end case *))
1776 fun yyQ19 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1777 of NONE => yyAction31(strm, yyNO_MATCH)
1778 | SOME(inp, strm') => yyAction31(strm, yyNO_MATCH)
1779 (* end case *))
1780 fun yyQ18 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1781 of NONE => yyAction22(strm, yyNO_MATCH)
1782 | SOME(inp, strm') => yyAction22(strm, yyNO_MATCH)
1783 (* end case *))
1784 fun yyQ17 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1785 of NONE => yyAction23(strm, yyNO_MATCH)
1786 | SOME(inp, strm') => yyAction23(strm, yyNO_MATCH)
1787 (* end case *))
1788 fun yyQ16 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1789 of NONE => yyAction17(strm, yyNO_MATCH)
1790 | SOME(inp, strm') => yyAction17(strm, yyNO_MATCH)
1791 (* end case *))
1792 fun yyQ15 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1793 of NONE => yyAction16(strm, yyNO_MATCH)
1794 | SOME(inp, strm') => yyAction16(strm, yyNO_MATCH)
1795 (* end case *))
1796 fun yyQ14 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1797 of NONE => yyAction20(strm, yyNO_MATCH)
1798 | SOME(inp, strm') => yyAction20(strm, yyNO_MATCH)
1799 (* end case *))
1800 fun yyQ13 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1801 of NONE => yyAction19(strm, yyNO_MATCH)
1802 | SOME(inp, strm') => yyAction19(strm, yyNO_MATCH)
1803 (* end case *))
1804 fun yyQ12 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1805 of NONE => yyAction21(strm, yyNO_MATCH)
1806 | SOME(inp, strm') => yyAction21(strm, yyNO_MATCH)
1807 (* end case *))
1808 fun yyQ11 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1809 of NONE => yyAction26(strm, yyNO_MATCH)
1810 | SOME(inp, strm') => yyAction26(strm, yyNO_MATCH)
1811 (* end case *))
1812 fun yyQ10 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1813 of NONE => yyAction14(strm, yyNO_MATCH)
1814 | SOME(inp, strm') => yyAction14(strm, yyNO_MATCH)
1815 (* end case *))
1816 fun yyQ9 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1817 of NONE => yyAction14(strm, yyNO_MATCH)
1818 | SOME(inp, strm') => yyAction14(strm, yyNO_MATCH)
1819 (* end case *))
1820 fun yyQ0 (strm, lastMatch : yymatch) = (case (yygetc(strm))
1821 of NONE =>
1822 if yyInput.eof(!(yystrm))
1823 then UserDeclarations.eof(yyarg)
1824 else yystuck(lastMatch)
1825 | SOME(inp, strm') =>
1826 if inp = #"."
1827 then yyQ17(strm', lastMatch)
1828 else if inp < #"."
1829 then if inp = #"\""
1830 then yyQ11(strm', lastMatch)
1831 else if inp < #"\""
1832 then if inp = #"\r"
1833 then yyQ9(strm', lastMatch)
1834 else if inp < #"\r"
1835 then if inp = #"\n"
1836 then yyQ10(strm', lastMatch)
1837 else if inp < #"\n"
1838 then if inp = #"\t"
1839 then yyQ9(strm', lastMatch)
1840 else yyQ8(strm', lastMatch)
1841 else yyQ8(strm', lastMatch)
1842 else if inp = #" "
1843 then yyQ9(strm', lastMatch)
1844 else yyQ8(strm', lastMatch)
1845 else if inp = #")"
1846 then yyQ14(strm', lastMatch)
1847 else if inp < #")"
1848 then if inp = #"%"
1849 then yyQ8(strm', lastMatch)
1850 else if inp < #"%"
1851 then if inp = #"#"
1852 then yyQ8(strm', lastMatch)
1853 else yyQ12(strm', lastMatch)
1854 else if inp = #"("
1855 then yyQ13(strm', lastMatch)
1856 else yyQ8(strm', lastMatch)
1857 else if inp = #"+"
1858 then yyQ16(strm', lastMatch)
1859 else if inp = #"*"
1860 then yyQ15(strm', lastMatch)
1861 else yyQ8(strm', lastMatch)
1862 else if inp = #"["
1863 then yyQ24(strm', lastMatch)
1864 else if inp < #"["
1865 then if inp = #"="
1866 then yyQ21(strm', lastMatch)
1867 else if inp < #"="
1868 then if inp = #";"
1869 then yyQ19(strm', lastMatch)
1870 else if inp < #";"
1871 then if inp = #"/"
1872 then yyQ18(strm', lastMatch)
1873 else yyQ8(strm', lastMatch)
1874 else yyQ20(strm', lastMatch)
1875 else if inp = #"?"
1876 then yyQ23(strm', lastMatch)
1877 else if inp = #">"
1878 then yyQ22(strm', lastMatch)
1879 else yyQ8(strm', lastMatch)
1880 else if inp = #"_"
1881 then yyQ8(strm', lastMatch)
1882 else if inp < #"_"
1883 then if inp = #"]"
1884 then yyQ8(strm', lastMatch)
1885 else if inp = #"\\"
1886 then yyQ25(strm', lastMatch)
1887 else yyQ26(strm', lastMatch)
1888 else if inp = #"|"
1889 then yyQ28(strm', lastMatch)
1890 else if inp < #"|"
1891 then if inp = #"{"
1892 then yyQ27(strm', lastMatch)
1893 else yyQ8(strm', lastMatch)
1894 else yyQ8(strm', lastMatch)
1895 (* end case *))
1896 in
1897 (case (!(yyss))
1898 of RE => yyQ0(!(yystrm), yyNO_MATCH)
1899 | DEFS => yyQ1(!(yystrm), yyNO_MATCH)
1900 | RECB => yyQ2(!(yystrm), yyNO_MATCH)
1901 | STRING => yyQ3(!(yystrm), yyNO_MATCH)
1902 | CHARCLASS => yyQ4(!(yystrm), yyNO_MATCH)
1903 | LEXSTATES => yyQ5(!(yystrm), yyNO_MATCH)
1904 | ACTION => yyQ6(!(yystrm), yyNO_MATCH)
1905 | INITIAL => yyQ7(!(yystrm), yyNO_MATCH)
1906 (* end case *))
1907 end
1908 end
1909 in
1910 continue()
1911 handle IO.Io{cause, ...} => raise cause
1912 end
1913 in
1914 lex
1915 end
1916 in
1917 fun makeLexer yyinputN = mk (yyInput.mkStream yyinputN)
1918 fun makeLexer' ins = mk (yyInput.mkStream ins)
1919 end
1920
1921 end