-
Notifications
You must be signed in to change notification settings - Fork 8
/
lexer.ulex.sml
12558 lines (12536 loc) · 594 KB
/
lexer.ulex.sml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(*
* The following licensing terms and conditions apply and must be
* accepted in order to use the Reference Implementation:
*
* 1. This Reference Implementation is made available to all
* interested persons on the same terms as Ecma makes available its
* standards and technical reports, as set forth at
* http://www.ecma-international.org/publications/.
*
* 2. All liability and responsibility for any use of this Reference
* Implementation rests with the user, and not with any of the parties
* who contribute to, or who own or hold any copyright in, this Reference
* Implementation.
*
* 3. THIS REFERENCE IMPLEMENTATION IS PROVIDED BY THE COPYRIGHT
* HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* End of Terms and Conditions
*
* Copyright (c) 2007 Adobe Systems Inc., The Mozilla Foundation, Opera
* Software ASA, and others.
*)
structure Lexer = struct
datatype yystart_state =
XML | REGEXP_CHARSET | REGEXP | STRING | MULTI_LINE_COMMENT | INITIAL | SINGLE_LINE_COMMENT
structure UserDeclarations =
struct
open Token
(* Local tracing machinery *)
val doTrace = ref false
fun trace ss = if (!doTrace) then LogErr.log ("[lex] " :: ss) else ()
fun error ss = LogErr.lexError ss
type lex_result = TOKEN
fun eof _ = Eof
fun chopTrailing (s:string)
: string =
String.substring (s, 0, ((String.size s) - 1))
val (found_newline : bool ref) = ref false
val (curr_quote : char ref) = ref #"\000"
val (curr_chars : UTF8.wchar list ref) = ref []
end
local
datatype yymatch
= yyNO_MATCH
| yyMATCH of ULexBuffer.stream * action * yymatch
withtype action = ULexBuffer.stream * yymatch -> UserDeclarations.lex_result
fun innerLex (yystrm_, yyss_, yysm) = let
(* current start state *)
val yyss = ref yyss_
fun YYBEGIN ss = (yyss := ss)
(* current input stream *)
val yystrm = ref yystrm_
fun yygetPos() = ULexBuffer.getpos (!yystrm)
(* start position of token -- can be updated via skip() *)
val yystartPos = ref (yygetPos())
(* get one char of input *)
fun yygetc strm = (case UTF8.getu ULexBuffer.getc strm
of (SOME (0w10, s')) =>
(StreamPos.markNewLine yysm (ULexBuffer.getpos strm);
SOME (0w10, s'))
| x => x)
fun yygetList getc strm = let
val get1 = UTF8.getu getc
fun iter (strm, accum) =
(case get1 strm
of NONE => rev accum
| SOME (w, strm') => iter (strm', w::accum)
(* end case *))
in
iter (strm, [])
end
(* create yytext *)
fun yymksubstr(strm) = ULexBuffer.subtract (strm, !yystrm)
fun yymktext(strm) = Substring.string (yymksubstr strm)
fun yymkunicode(strm) = yygetList Substring.getc (yymksubstr strm)
open UserDeclarations
fun lex () = let
fun yystuck (yyNO_MATCH) = raise Fail "lexer reached a stuck state"
| yystuck (yyMATCH (strm, action, old)) =
action (strm, old)
val yypos = yygetPos()
fun yygetlineNo strm = StreamPos.lineNo yysm (ULexBuffer.getpos strm)
fun yygetcolNo strm = StreamPos.colNo yysm (ULexBuffer.getpos strm)
fun continue() =
let
fun yyAction0 (strm, lastMatch) = (yystrm := strm; Eol)
fun yyAction1 (strm, lastMatch) = (yystrm := strm; Minus)
fun yyAction2 (strm, lastMatch) = (yystrm := strm; MinusMinus)
fun yyAction3 (strm, lastMatch) = (yystrm := strm; Not)
fun yyAction4 (strm, lastMatch) = (yystrm := strm; NotEquals)
fun yyAction5 (strm, lastMatch) = (yystrm := strm; StrictNotEquals)
fun yyAction6 (strm, lastMatch) = (yystrm := strm; Modulus)
fun yyAction7 (strm, lastMatch) = (yystrm := strm; ModulusAssign)
fun yyAction8 (strm, lastMatch) = (yystrm := strm; BitwiseAnd)
fun yyAction9 (strm, lastMatch) = (yystrm := strm; LogicalAnd)
fun yyAction10 (strm, lastMatch) = (yystrm := strm; LogicalAndAssign)
fun yyAction11 (strm, lastMatch) = (yystrm := strm; BitwiseAndAssign)
fun yyAction12 (strm, lastMatch) = (yystrm := strm; LeftParen)
fun yyAction13 (strm, lastMatch) = (yystrm := strm; RightParen)
fun yyAction14 (strm, lastMatch) = (yystrm := strm; Mult)
fun yyAction15 (strm, lastMatch) = (yystrm := strm; MultAssign)
fun yyAction16 (strm, lastMatch) = (yystrm := strm; Comma)
fun yyAction17 (strm, lastMatch) = (yystrm := strm; Dot)
fun yyAction18 (strm, lastMatch) = (yystrm := strm; DoubleDot)
fun yyAction19 (strm, lastMatch) = (yystrm := strm; TripleDot)
fun yyAction20 (strm, lastMatch) = (yystrm := strm; LeftDotAngle)
fun yyAction21 (strm, lastMatch) = (yystrm := strm;
LexBreakDiv { lex_initial = fn _ => [], lex_regexp = fn _ => [] })
fun yyAction22 (strm, lastMatch) = (yystrm := strm;
LexBreakDivAssign { lex_initial = fn _ => [], lex_regexp = fn _ => [] })
fun yyAction23 (strm, lastMatch) = (yystrm := strm; Colon)
fun yyAction24 (strm, lastMatch) = (yystrm := strm; DoubleColon)
fun yyAction25 (strm, lastMatch) = (yystrm := strm; SemiColon)
fun yyAction26 (strm, lastMatch) = (yystrm := strm; QuestionMark)
fun yyAction27 (strm, lastMatch) = (yystrm := strm; At)
fun yyAction28 (strm, lastMatch) = (yystrm := strm; LeftBracket)
fun yyAction29 (strm, lastMatch) = (yystrm := strm; RightBracket)
fun yyAction30 (strm, lastMatch) = (yystrm := strm; BitwiseXor)
fun yyAction31 (strm, lastMatch) = (yystrm := strm; BitwiseXorAssign)
fun yyAction32 (strm, lastMatch) = (yystrm := strm; LeftBrace)
fun yyAction33 (strm, lastMatch) = (yystrm := strm; BitwiseOr)
fun yyAction34 (strm, lastMatch) = (yystrm := strm; LogicalOr)
fun yyAction35 (strm, lastMatch) = (yystrm := strm; LogicalOrAssign)
fun yyAction36 (strm, lastMatch) = (yystrm := strm; BitwiseOrAssign)
fun yyAction37 (strm, lastMatch) = (yystrm := strm; RightBrace)
fun yyAction38 (strm, lastMatch) = (yystrm := strm; BitwiseNot)
fun yyAction39 (strm, lastMatch) = (yystrm := strm; Plus)
fun yyAction40 (strm, lastMatch) = (yystrm := strm; PlusPlus)
fun yyAction41 (strm, lastMatch) = (yystrm := strm; PlusAssign)
fun yyAction42 (strm, lastMatch) = (yystrm := strm;
LexBreakLessThan { lex_initial = fn _ => [], lex_xml = fn _ => [] })
fun yyAction43 (strm, lastMatch) = (yystrm := strm; LeftShift)
fun yyAction44 (strm, lastMatch) = (yystrm := strm; LeftShiftAssign)
fun yyAction45 (strm, lastMatch) = (yystrm := strm; LessThanOrEquals)
fun yyAction46 (strm, lastMatch) = (yystrm := strm; Assign)
fun yyAction47 (strm, lastMatch) = (yystrm := strm; MinusAssign)
fun yyAction48 (strm, lastMatch) = (yystrm := strm; Equals)
fun yyAction49 (strm, lastMatch) = (yystrm := strm; StrictEquals)
fun yyAction50 (strm, lastMatch) = (yystrm := strm; GreaterThan)
fun yyAction51 (strm, lastMatch) = (yystrm := strm; GreaterThanOrEquals)
fun yyAction52 (strm, lastMatch) = (yystrm := strm; RightShift)
fun yyAction53 (strm, lastMatch) = (yystrm := strm; RightShiftAssign)
fun yyAction54 (strm, lastMatch) = (yystrm := strm; UnsignedRightShift)
fun yyAction55 (strm, lastMatch) = (yystrm := strm; UnsignedRightShiftAssign)
fun yyAction56 (strm, lastMatch) = (yystrm := strm; As)
fun yyAction57 (strm, lastMatch) = (yystrm := strm; Break)
fun yyAction58 (strm, lastMatch) = (yystrm := strm; Case)
fun yyAction59 (strm, lastMatch) = (yystrm := strm; Cast)
fun yyAction60 (strm, lastMatch) = (yystrm := strm; Catch)
fun yyAction61 (strm, lastMatch) = (yystrm := strm; Class)
fun yyAction62 (strm, lastMatch) = (yystrm := strm; Const)
fun yyAction63 (strm, lastMatch) = (yystrm := strm; Continue)
fun yyAction64 (strm, lastMatch) = (yystrm := strm; Default)
fun yyAction65 (strm, lastMatch) = (yystrm := strm; Delete)
fun yyAction66 (strm, lastMatch) = (yystrm := strm; Do)
fun yyAction67 (strm, lastMatch) = (yystrm := strm; Else)
fun yyAction68 (strm, lastMatch) = (yystrm := strm; Enum)
fun yyAction69 (strm, lastMatch) = (yystrm := strm; Extends)
fun yyAction70 (strm, lastMatch) = (yystrm := strm; False)
fun yyAction71 (strm, lastMatch) = (yystrm := strm; Finally)
fun yyAction72 (strm, lastMatch) = (yystrm := strm; For)
fun yyAction73 (strm, lastMatch) = (yystrm := strm; Function)
fun yyAction74 (strm, lastMatch) = (yystrm := strm; If)
fun yyAction75 (strm, lastMatch) = (yystrm := strm; Implements)
fun yyAction76 (strm, lastMatch) = (yystrm := strm; Import)
fun yyAction77 (strm, lastMatch) = (yystrm := strm; In)
fun yyAction78 (strm, lastMatch) = (yystrm := strm; InstanceOf)
fun yyAction79 (strm, lastMatch) = (yystrm := strm; Interface)
fun yyAction80 (strm, lastMatch) = (yystrm := strm; Internal)
fun yyAction81 (strm, lastMatch) = (yystrm := strm; Intrinsic)
fun yyAction82 (strm, lastMatch) = (yystrm := strm; Is)
fun yyAction83 (strm, lastMatch) = (yystrm := strm; Let)
fun yyAction84 (strm, lastMatch) = (yystrm := strm; New)
fun yyAction85 (strm, lastMatch) = (yystrm := strm; Null)
fun yyAction86 (strm, lastMatch) = (yystrm := strm; Package)
fun yyAction87 (strm, lastMatch) = (yystrm := strm; Precision)
fun yyAction88 (strm, lastMatch) = (yystrm := strm; Private)
fun yyAction89 (strm, lastMatch) = (yystrm := strm; Protected)
fun yyAction90 (strm, lastMatch) = (yystrm := strm; Public)
fun yyAction91 (strm, lastMatch) = (yystrm := strm; Return)
fun yyAction92 (strm, lastMatch) = (yystrm := strm; Super)
fun yyAction93 (strm, lastMatch) = (yystrm := strm; Switch)
fun yyAction94 (strm, lastMatch) = (yystrm := strm; This)
fun yyAction95 (strm, lastMatch) = (yystrm := strm; Throw)
fun yyAction96 (strm, lastMatch) = (yystrm := strm; To)
fun yyAction97 (strm, lastMatch) = (yystrm := strm; True)
fun yyAction98 (strm, lastMatch) = (yystrm := strm; Try)
fun yyAction99 (strm, lastMatch) = (yystrm := strm; TypeOf)
fun yyAction100 (strm, lastMatch) = (yystrm := strm; Use)
fun yyAction101 (strm, lastMatch) = (yystrm := strm; Var)
fun yyAction102 (strm, lastMatch) = (yystrm := strm; Void)
fun yyAction103 (strm, lastMatch) = (yystrm := strm; While)
fun yyAction104 (strm, lastMatch) = (yystrm := strm; With)
fun yyAction105 (strm, lastMatch) = (yystrm := strm; Call)
fun yyAction106 (strm, lastMatch) = (yystrm := strm; Debugger)
fun yyAction107 (strm, lastMatch) = (yystrm := strm; Decimal)
fun yyAction108 (strm, lastMatch) = (yystrm := strm; Double)
fun yyAction109 (strm, lastMatch) = (yystrm := strm; Dynamic)
fun yyAction110 (strm, lastMatch) = (yystrm := strm; Each)
fun yyAction111 (strm, lastMatch) = (yystrm := strm; Final)
fun yyAction112 (strm, lastMatch) = (yystrm := strm; Get)
fun yyAction113 (strm, lastMatch) = (yystrm := strm; Goto)
fun yyAction114 (strm, lastMatch) = (yystrm := strm; Has)
fun yyAction115 (strm, lastMatch) = (yystrm := strm; Include)
fun yyAction116 (strm, lastMatch) = (yystrm := strm; Int)
fun yyAction117 (strm, lastMatch) = (yystrm := strm; Namespace)
fun yyAction118 (strm, lastMatch) = (yystrm := strm; Native)
fun yyAction119 (strm, lastMatch) = (yystrm := strm; Number)
fun yyAction120 (strm, lastMatch) = (yystrm := strm; Override)
fun yyAction121 (strm, lastMatch) = (yystrm := strm; Prototype)
fun yyAction122 (strm, lastMatch) = (yystrm := strm; Rounding)
fun yyAction123 (strm, lastMatch) = (yystrm := strm; Standard)
fun yyAction124 (strm, lastMatch) = (yystrm := strm; Strict)
fun yyAction125 (strm, lastMatch) = (yystrm := strm; UInt)
fun yyAction126 (strm, lastMatch) = (yystrm := strm; Set)
fun yyAction127 (strm, lastMatch) = (yystrm := strm; Static)
fun yyAction128 (strm, lastMatch) = (yystrm := strm; Type)
fun yyAction129 (strm, lastMatch) = (yystrm := strm; Undefined)
fun yyAction130 (strm, lastMatch) = (yystrm := strm; Token.Xml)
fun yyAction131 (strm, lastMatch) = (yystrm := strm; Yield)
fun yyAction132 (strm, lastMatch) = (yystrm := strm; continue())
fun yyAction133 (strm, lastMatch) = let
val yyunicode = yymkunicode(strm)
in
yystrm := strm; Identifier (Vector.fromList yyunicode)
end
fun yyAction134 (strm, lastMatch) = let
val yytext = yymktext(strm)
in
yystrm := strm;
case Int32.fromString (chopTrailing yytext) of
SOME i => ExplicitIntLiteral i
| NONE => error ["unexpected input in {explicitIntLiteral}: '", yytext, "'"]
end
fun yyAction135 (strm, lastMatch) = let
val yytext = yymktext(strm)
in
yystrm := strm;
case LargeInt.fromString (chopTrailing yytext) of
SOME i => ExplicitUIntLiteral (Word32.fromLargeInt i)
| NONE => error ["unexpected input in {explicitUIntDecLiteral}: '", yytext, "'"]
end
fun yyAction136 (strm, lastMatch) = let
val yytext = yymktext(strm)
in
yystrm := strm;
case Word32.fromString (chopTrailing yytext) of
SOME i => ExplicitUIntLiteral i
| NONE => error ["unexpected input in {explicitUIntHexLiteral}: '", yytext, "'"]
end
fun yyAction137 (strm, lastMatch) = let
val yytext = yymktext(strm)
in
yystrm := strm;
case Real64.fromString (chopTrailing yytext) of
SOME i => ExplicitDoubleLiteral i
| NONE => error ["unexpected input in {explicitDoubleLiteral}: '", yytext, "'"]
end
fun yyAction138 (strm, lastMatch) = let
val yytext = yymktext(strm)
in
yystrm := strm;
case Decimal.fromStringDefault (chopTrailing yytext) of
SOME i => ExplicitDecimalLiteral i
| NONE => error ["unexpected input in {explicitDecimalLiteral}: '", yytext, "'"]
end
fun yyAction139 (strm, lastMatch) = let
val yytext = yymktext(strm)
in
yystrm := strm; DecimalIntegerLiteral yytext
end
fun yyAction140 (strm, lastMatch) = let
val yytext = yymktext(strm)
in
yystrm := strm; HexIntegerLiteral yytext
end
fun yyAction141 (strm, lastMatch) = let
val yytext = yymktext(strm)
in
yystrm := strm; DecimalLiteral yytext
end
fun yyAction142 (strm, lastMatch) = (yystrm := strm;
YYBEGIN SINGLE_LINE_COMMENT; continue())
fun yyAction143 (strm, lastMatch) = (yystrm := strm; YYBEGIN INITIAL; Eol)
fun yyAction144 (strm, lastMatch) = (yystrm := strm; continue())
fun yyAction145 (strm, lastMatch) = (yystrm := strm;
YYBEGIN MULTI_LINE_COMMENT; continue())
fun yyAction146 (strm, lastMatch) = (yystrm := strm;
YYBEGIN INITIAL; continue())
fun yyAction147 (strm, lastMatch) = (yystrm := strm; continue())
fun yyAction148 (strm, lastMatch) = (yystrm := strm; continue())
fun yyAction149 (strm, lastMatch) = let
val yyunicode = yymkunicode(strm)
val yytext = yymktext(strm)
in
yystrm := strm;
let
val x_flag = String.isSubstring "x" yytext;
val re = rev (!curr_chars) @ yyunicode
in
if !found_newline andalso (not x_flag)
then error ["Illegal newline in regexp"]
else
(curr_chars := [];
found_newline := false;
YYBEGIN INITIAL;
RegexpLiteral (Vector.fromList re))
end
end
fun yyAction150 (strm, lastMatch) = (yystrm := strm;
curr_chars := (UTF8.fromAscii #"[") :: !curr_chars;
YYBEGIN REGEXP_CHARSET;
continue())
fun yyAction151 (strm, lastMatch) = (yystrm := strm;
found_newline := true; continue())
fun yyAction152 (strm, lastMatch) = (yystrm := strm; continue())
fun yyAction153 (strm, lastMatch) = let
val yyunicode = yymkunicode(strm)
in
yystrm := strm;
curr_chars := List.nth(yyunicode,1) :: (UTF8.fromAscii #"\\") :: !curr_chars;
continue()
end
fun yyAction154 (strm, lastMatch) = let
val yyunicode = yymkunicode(strm)
in
yystrm := strm;
curr_chars := List.nth(yyunicode,0) :: !curr_chars;
continue()
end
fun yyAction155 (strm, lastMatch) = (yystrm := strm;
curr_chars := (UTF8.fromAscii #"]") :: !curr_chars;
YYBEGIN REGEXP;
continue())
fun yyAction156 (strm, lastMatch) = (yystrm := strm;
found_newline := true; continue())
fun yyAction157 (strm, lastMatch) = (yystrm := strm; continue())
fun yyAction158 (strm, lastMatch) = let
val yyunicode = yymkunicode(strm)
in
yystrm := strm;
curr_chars := List.nth(yyunicode,1) :: (UTF8.fromAscii #"\\") :: !curr_chars;
continue()
end
fun yyAction159 (strm, lastMatch) = let
val yyunicode = yymkunicode(strm)
in
yystrm := strm;
curr_chars := List.nth(yyunicode,0) :: !curr_chars;
continue()
end
fun yyAction160 (strm, lastMatch) = let
val yytext = yymktext(strm)
in
yystrm := strm;
curr_quote := String.sub (yytext,0);
curr_chars := [];
YYBEGIN STRING;
continue()
end
fun yyAction161 (strm, lastMatch) = let
val yyunicode = yymkunicode(strm)
val yytext = yymktext(strm)
in
yystrm := strm;
if
(!curr_quote) = String.sub (yytext,0)
then
let
val str = rev (!curr_chars)
(* val str_span = *)
in
curr_quote := #"\000";
curr_chars := [];
YYBEGIN INITIAL;
(* (StringLiteral str, str_span) *)
StringLiteral (Vector.fromList str)
end
else
(curr_chars := (hd yyunicode) :: (!curr_chars);
continue())
end
fun yyAction162 (strm, lastMatch) = let
val yytext = yymktext(strm)
in
yystrm := strm;
(case Char.fromCString yytext of
NONE => error ["unexpected input in <STRING>{charEscape}: '", yytext, "'"]
| SOME c => curr_chars := (UTF8.fromAscii c) :: (!curr_chars));
continue()
end
fun yyAction163 (strm, lastMatch) = let
val yyunicode = yymkunicode(strm)
in
yystrm := strm;
curr_chars := (List.nth(yyunicode,1)) :: (!curr_chars);
continue()
end
fun yyAction164 (strm, lastMatch) = let
val yyunicode = yymkunicode(strm)
in
yystrm := strm;
curr_chars := (List.nth(yyunicode,0)) :: (!curr_chars);
continue()
end
fun yyAction165 (strm, lastMatch) = let
val yytext = yymktext(strm)
in
yystrm := strm;
error [
"unexpected input: '",
yytext,
"' -- char code: ",
Int.toString (Char.ord (String.sub (yytext,0)))
]
end
fun yyQ429 (strm, lastMatch) = yyAction143(strm, yyNO_MATCH)
fun yyQ430 (strm, lastMatch) = yyAction144(strm, yyNO_MATCH)
fun yyQ6 (strm, lastMatch) = (case (yygetc(strm))
of NONE =>
if ULexBuffer.eof(strm)
then UserDeclarations.eof(())
else yystuck(lastMatch)
| SOME(inp, strm') =>
if inp = 0wxA
then yyQ429(strm', lastMatch)
else yyQ430(strm', lastMatch)
(* end case *))
fun yyQ35 (strm, lastMatch) = yyAction0(strm, yyNO_MATCH)
fun yyQ427 (strm, lastMatch) = yyAction2(strm, yyNO_MATCH)
fun yyQ428 (strm, lastMatch) = yyAction47(strm, yyNO_MATCH)
fun yyQ36 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction1(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx2E
then yyAction1(strm, yyNO_MATCH)
else if inp < 0wx2E
then if inp = 0wx2D
then yyQ427(strm', yyMATCH(strm, yyAction1, yyNO_MATCH))
else yyAction1(strm, yyNO_MATCH)
else if inp = 0wx3D
then yyQ428(strm', yyMATCH(strm, yyAction1, yyNO_MATCH))
else yyAction1(strm, yyNO_MATCH)
(* end case *))
fun yyQ426 (strm, lastMatch) = yyAction5(strm, yyNO_MATCH)
fun yyQ425 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction4(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx3D
then yyQ426(strm', yyMATCH(strm, yyAction4, yyNO_MATCH))
else yyAction4(strm, yyNO_MATCH)
(* end case *))
fun yyQ37 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction3(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx3D
then yyQ425(strm', yyMATCH(strm, yyAction3, yyNO_MATCH))
else yyAction3(strm, yyNO_MATCH)
(* end case *))
fun yyQ424 (strm, lastMatch) = yyAction7(strm, yyNO_MATCH)
fun yyQ38 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction6(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx3D
then yyQ424(strm', yyMATCH(strm, yyAction6, yyNO_MATCH))
else yyAction6(strm, yyNO_MATCH)
(* end case *))
fun yyQ423 (strm, lastMatch) = yyAction10(strm, yyNO_MATCH)
fun yyQ421 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction9(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx3D
then yyQ423(strm', yyMATCH(strm, yyAction9, yyNO_MATCH))
else yyAction9(strm, yyNO_MATCH)
(* end case *))
fun yyQ422 (strm, lastMatch) = yyAction11(strm, yyNO_MATCH)
fun yyQ39 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction8(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx27
then yyAction8(strm, yyNO_MATCH)
else if inp < 0wx27
then if inp = 0wx26
then yyQ421(strm', yyMATCH(strm, yyAction8, yyNO_MATCH))
else yyAction8(strm, yyNO_MATCH)
else if inp = 0wx3D
then yyQ422(strm', yyMATCH(strm, yyAction8, yyNO_MATCH))
else yyAction8(strm, yyNO_MATCH)
(* end case *))
fun yyQ40 (strm, lastMatch) = yyAction12(strm, yyNO_MATCH)
fun yyQ41 (strm, lastMatch) = yyAction13(strm, yyNO_MATCH)
fun yyQ420 (strm, lastMatch) = yyAction15(strm, yyNO_MATCH)
fun yyQ42 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction14(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx3D
then yyQ420(strm', yyMATCH(strm, yyAction14, yyNO_MATCH))
else yyAction14(strm, yyNO_MATCH)
(* end case *))
fun yyQ43 (strm, lastMatch) = yyAction16(strm, yyNO_MATCH)
fun yyQ419 (strm, lastMatch) = yyAction19(strm, yyNO_MATCH)
fun yyQ417 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction18(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx2E
then yyQ419(strm', yyMATCH(strm, yyAction18, yyNO_MATCH))
else yyAction18(strm, yyNO_MATCH)
(* end case *))
fun yyQ418 (strm, lastMatch) = yyAction20(strm, yyNO_MATCH)
fun yyQ386 (strm, lastMatch) = yyAction137(strm, yyNO_MATCH)
fun yyQ387 (strm, lastMatch) = yyAction138(strm, yyNO_MATCH)
fun yyQ396 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction141(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx64
then yyQ386(strm', yyMATCH(strm, yyAction141, yyNO_MATCH))
else if inp < 0wx64
then if inp = 0wx30
then yyQ396(strm', yyMATCH(strm, yyAction141, yyNO_MATCH))
else if inp < 0wx30
then yyAction141(strm, yyNO_MATCH)
else if inp <= 0wx39
then yyQ396(strm', yyMATCH(strm, yyAction141, yyNO_MATCH))
else yyAction141(strm, yyNO_MATCH)
else if inp = 0wx6D
then yyQ387(strm', yyMATCH(strm, yyAction141, yyNO_MATCH))
else yyAction141(strm, yyNO_MATCH)
(* end case *))
fun yyQ395 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yystuck(lastMatch)
| SOME(inp, strm') =>
if inp = 0wx30
then yyQ396(strm', lastMatch)
else if inp < 0wx30
then yystuck(lastMatch)
else if inp <= 0wx39
then yyQ396(strm', lastMatch)
else yystuck(lastMatch)
(* end case *))
fun yyQ388 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yystuck(lastMatch)
| SOME(inp, strm') =>
if inp = 0wx2D
then yyQ395(strm', lastMatch)
else if inp < 0wx2D
then if inp = 0wx2B
then yyQ395(strm', lastMatch)
else yystuck(lastMatch)
else if inp = 0wx30
then yyQ396(strm', lastMatch)
else if inp < 0wx30
then yystuck(lastMatch)
else if inp <= 0wx39
then yyQ396(strm', lastMatch)
else yystuck(lastMatch)
(* end case *))
fun yyQ389 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction141(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx64
then yyQ386(strm', yyMATCH(strm, yyAction141, yyNO_MATCH))
else if inp < 0wx64
then if inp = 0wx3A
then yyAction141(strm, yyNO_MATCH)
else if inp < 0wx3A
then if inp <= 0wx2F
then yyAction141(strm, yyNO_MATCH)
else yyQ389(strm', yyMATCH(strm, yyAction141, yyNO_MATCH))
else if inp = 0wx45
then yyQ388(strm', yyMATCH(strm, yyAction141, yyNO_MATCH))
else yyAction141(strm, yyNO_MATCH)
else if inp = 0wx6D
then yyQ387(strm', yyMATCH(strm, yyAction141, yyNO_MATCH))
else if inp < 0wx6D
then if inp = 0wx65
then yyQ388(strm', yyMATCH(strm, yyAction141, yyNO_MATCH))
else yyAction141(strm, yyNO_MATCH)
else yyAction141(strm, yyNO_MATCH)
(* end case *))
fun yyQ44 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction17(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx30
then yyQ389(strm', yyMATCH(strm, yyAction17, yyNO_MATCH))
else if inp < 0wx30
then if inp = 0wx2E
then yyQ417(strm', yyMATCH(strm, yyAction17, yyNO_MATCH))
else yyAction17(strm, yyNO_MATCH)
else if inp = 0wx3C
then yyQ418(strm', yyMATCH(strm, yyAction17, yyNO_MATCH))
else if inp < 0wx3C
then if inp <= 0wx39
then yyQ389(strm', yyMATCH(strm, yyAction17, yyNO_MATCH))
else yyAction17(strm, yyNO_MATCH)
else yyAction17(strm, yyNO_MATCH)
(* end case *))
fun yyQ414 (strm, lastMatch) = yyAction22(strm, yyNO_MATCH)
fun yyQ415 (strm, lastMatch) = yyAction142(strm, yyNO_MATCH)
fun yyQ416 (strm, lastMatch) = yyAction145(strm, yyNO_MATCH)
fun yyQ45 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction21(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx2F
then yyQ415(strm', yyMATCH(strm, yyAction21, yyNO_MATCH))
else if inp < 0wx2F
then if inp = 0wx2A
then yyQ416(strm', yyMATCH(strm, yyAction21, yyNO_MATCH))
else yyAction21(strm, yyNO_MATCH)
else if inp = 0wx3D
then yyQ414(strm', yyMATCH(strm, yyAction21, yyNO_MATCH))
else yyAction21(strm, yyNO_MATCH)
(* end case *))
fun yyQ413 (strm, lastMatch) = yyAction24(strm, yyNO_MATCH)
fun yyQ46 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction23(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx3A
then yyQ413(strm', yyMATCH(strm, yyAction23, yyNO_MATCH))
else yyAction23(strm, yyNO_MATCH)
(* end case *))
fun yyQ47 (strm, lastMatch) = yyAction25(strm, yyNO_MATCH)
fun yyQ48 (strm, lastMatch) = yyAction26(strm, yyNO_MATCH)
fun yyQ49 (strm, lastMatch) = yyAction27(strm, yyNO_MATCH)
fun yyQ50 (strm, lastMatch) = yyAction28(strm, yyNO_MATCH)
fun yyQ51 (strm, lastMatch) = yyAction29(strm, yyNO_MATCH)
fun yyQ412 (strm, lastMatch) = yyAction31(strm, yyNO_MATCH)
fun yyQ52 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction30(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx3D
then yyQ412(strm', yyMATCH(strm, yyAction30, yyNO_MATCH))
else yyAction30(strm, yyNO_MATCH)
(* end case *))
fun yyQ53 (strm, lastMatch) = yyAction32(strm, yyNO_MATCH)
fun yyQ411 (strm, lastMatch) = yyAction35(strm, yyNO_MATCH)
fun yyQ409 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction34(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx3D
then yyQ411(strm', yyMATCH(strm, yyAction34, yyNO_MATCH))
else yyAction34(strm, yyNO_MATCH)
(* end case *))
fun yyQ410 (strm, lastMatch) = yyAction36(strm, yyNO_MATCH)
fun yyQ54 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction33(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx3E
then yyAction33(strm, yyNO_MATCH)
else if inp < 0wx3E
then if inp = 0wx3D
then yyQ410(strm', yyMATCH(strm, yyAction33, yyNO_MATCH))
else yyAction33(strm, yyNO_MATCH)
else if inp = 0wx7C
then yyQ409(strm', yyMATCH(strm, yyAction33, yyNO_MATCH))
else yyAction33(strm, yyNO_MATCH)
(* end case *))
fun yyQ55 (strm, lastMatch) = yyAction37(strm, yyNO_MATCH)
fun yyQ56 (strm, lastMatch) = yyAction38(strm, yyNO_MATCH)
fun yyQ407 (strm, lastMatch) = yyAction40(strm, yyNO_MATCH)
fun yyQ408 (strm, lastMatch) = yyAction41(strm, yyNO_MATCH)
fun yyQ57 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction39(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx2C
then yyAction39(strm, yyNO_MATCH)
else if inp < 0wx2C
then if inp = 0wx2B
then yyQ407(strm', yyMATCH(strm, yyAction39, yyNO_MATCH))
else yyAction39(strm, yyNO_MATCH)
else if inp = 0wx3D
then yyQ408(strm', yyMATCH(strm, yyAction39, yyNO_MATCH))
else yyAction39(strm, yyNO_MATCH)
(* end case *))
fun yyQ406 (strm, lastMatch) = yyAction44(strm, yyNO_MATCH)
fun yyQ404 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction43(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx3D
then yyQ406(strm', yyMATCH(strm, yyAction43, yyNO_MATCH))
else yyAction43(strm, yyNO_MATCH)
(* end case *))
fun yyQ405 (strm, lastMatch) = yyAction45(strm, yyNO_MATCH)
fun yyQ58 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction42(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx3D
then yyQ405(strm', yyMATCH(strm, yyAction42, yyNO_MATCH))
else if inp < 0wx3D
then if inp = 0wx3C
then yyQ404(strm', yyMATCH(strm, yyAction42, yyNO_MATCH))
else yyAction42(strm, yyNO_MATCH)
else yyAction42(strm, yyNO_MATCH)
(* end case *))
fun yyQ403 (strm, lastMatch) = yyAction49(strm, yyNO_MATCH)
fun yyQ402 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction48(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx3D
then yyQ403(strm', yyMATCH(strm, yyAction48, yyNO_MATCH))
else yyAction48(strm, yyNO_MATCH)
(* end case *))
fun yyQ59 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction46(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx3D
then yyQ402(strm', yyMATCH(strm, yyAction46, yyNO_MATCH))
else yyAction46(strm, yyNO_MATCH)
(* end case *))
fun yyQ397 (strm, lastMatch) = yyAction51(strm, yyNO_MATCH)
fun yyQ399 (strm, lastMatch) = yyAction53(strm, yyNO_MATCH)
fun yyQ401 (strm, lastMatch) = yyAction55(strm, yyNO_MATCH)
fun yyQ400 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction54(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx3D
then yyQ401(strm', yyMATCH(strm, yyAction54, yyNO_MATCH))
else yyAction54(strm, yyNO_MATCH)
(* end case *))
fun yyQ398 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction52(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx3E
then yyQ400(strm', yyMATCH(strm, yyAction52, yyNO_MATCH))
else if inp < 0wx3E
then if inp = 0wx3D
then yyQ399(strm', yyMATCH(strm, yyAction52, yyNO_MATCH))
else yyAction52(strm, yyNO_MATCH)
else yyAction52(strm, yyNO_MATCH)
(* end case *))
fun yyQ60 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction50(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx3E
then yyQ398(strm', yyMATCH(strm, yyAction50, yyNO_MATCH))
else if inp < 0wx3E
then if inp = 0wx3D
then yyQ397(strm', yyMATCH(strm, yyAction50, yyNO_MATCH))
else yyAction50(strm, yyNO_MATCH)
else yyAction50(strm, yyNO_MATCH)
(* end case *))
fun yyQ61 (strm, lastMatch) = yyAction160(strm, yyNO_MATCH)
fun yyQ62 (strm, lastMatch) = yyAction165(strm, yyNO_MATCH)
fun yyQ384 (strm, lastMatch) = yyAction134(strm, yyNO_MATCH)
fun yyQ385 (strm, lastMatch) = yyAction135(strm, yyNO_MATCH)
fun yyQ391 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction139(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx65
then yyQ388(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else if inp < 0wx65
then if inp = 0wx3A
then yyAction139(strm, yyNO_MATCH)
else if inp < 0wx3A
then if inp = 0wx2F
then yyAction139(strm, yyNO_MATCH)
else if inp < 0wx2F
then if inp = 0wx2E
then yyQ389(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else yyAction139(strm, yyNO_MATCH)
else yyQ391(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else if inp = 0wx46
then yyAction139(strm, yyNO_MATCH)
else if inp < 0wx46
then if inp = 0wx45
then yyQ388(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else yyAction139(strm, yyNO_MATCH)
else if inp = 0wx64
then yyQ386(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else yyAction139(strm, yyNO_MATCH)
else if inp = 0wx6D
then yyQ387(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else if inp < 0wx6D
then if inp = 0wx69
then yyQ384(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else yyAction139(strm, yyNO_MATCH)
else if inp = 0wx75
then yyQ385(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else yyAction139(strm, yyNO_MATCH)
(* end case *))
fun yyQ63 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction139(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx65
then yyQ388(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else if inp < 0wx65
then if inp = 0wx3A
then yyAction139(strm, yyNO_MATCH)
else if inp < 0wx3A
then if inp = 0wx2F
then yyAction139(strm, yyNO_MATCH)
else if inp < 0wx2F
then if inp = 0wx2E
then yyQ389(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else yyAction139(strm, yyNO_MATCH)
else yyQ391(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else if inp = 0wx46
then yyAction139(strm, yyNO_MATCH)
else if inp < 0wx46
then if inp = 0wx45
then yyQ388(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else yyAction139(strm, yyNO_MATCH)
else if inp = 0wx64
then yyQ386(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else yyAction139(strm, yyNO_MATCH)
else if inp = 0wx6D
then yyQ387(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else if inp < 0wx6D
then if inp = 0wx69
then yyQ384(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else yyAction139(strm, yyNO_MATCH)
else if inp = 0wx75
then yyQ385(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else yyAction139(strm, yyNO_MATCH)
(* end case *))
fun yyQ393 (strm, lastMatch) = yyAction136(strm, yyNO_MATCH)
fun yyQ392 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction140(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx61
then yyQ392(strm', yyMATCH(strm, yyAction140, yyNO_MATCH))
else if inp < 0wx61
then if inp = 0wx3A
then yyAction140(strm, yyNO_MATCH)
else if inp < 0wx3A
then if inp <= 0wx2F
then yyAction140(strm, yyNO_MATCH)
else yyQ392(strm', yyMATCH(strm, yyAction140, yyNO_MATCH))
else if inp = 0wx41
then yyQ392(strm', yyMATCH(strm, yyAction140, yyNO_MATCH))
else if inp < 0wx41
then yyAction140(strm, yyNO_MATCH)
else if inp <= 0wx46
then yyQ392(strm', yyMATCH(strm, yyAction140, yyNO_MATCH))
else yyAction140(strm, yyNO_MATCH)
else if inp = 0wx6A
then yyAction140(strm, yyNO_MATCH)
else if inp < 0wx6A
then if inp = 0wx67
then yyAction140(strm, yyNO_MATCH)
else if inp < 0wx67
then yyQ392(strm', yyMATCH(strm, yyAction140, yyNO_MATCH))
else if inp = 0wx69
then yyQ384(strm', yyMATCH(strm, yyAction140, yyNO_MATCH))
else yyAction140(strm, yyNO_MATCH)
else if inp = 0wx75
then yyQ393(strm', yyMATCH(strm, yyAction140, yyNO_MATCH))
else yyAction140(strm, yyNO_MATCH)
(* end case *))
fun yyQ390 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yystuck(lastMatch)
| SOME(inp, strm') =>
if inp = 0wx41
then yyQ392(strm', lastMatch)
else if inp < 0wx41
then if inp = 0wx30
then yyQ392(strm', lastMatch)
else if inp < 0wx30
then yystuck(lastMatch)
else if inp <= 0wx39
then yyQ392(strm', lastMatch)
else yystuck(lastMatch)
else if inp = 0wx61
then yyQ392(strm', lastMatch)
else if inp < 0wx61
then if inp <= 0wx46
then yyQ392(strm', lastMatch)
else yystuck(lastMatch)
else if inp <= 0wx66
then yyQ392(strm', lastMatch)
else yystuck(lastMatch)
(* end case *))
fun yyQ64 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction139(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx65
then yyQ388(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else if inp < 0wx65
then if inp = 0wx45
then yyQ388(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else if inp < 0wx45
then if inp = 0wx2F
then yyAction139(strm, yyNO_MATCH)
else if inp < 0wx2F
then if inp = 0wx2E
then yyQ389(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else yyAction139(strm, yyNO_MATCH)
else if inp <= 0wx39
then yyQ391(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else yyAction139(strm, yyNO_MATCH)
else if inp = 0wx59
then yyAction139(strm, yyNO_MATCH)
else if inp < 0wx59
then if inp = 0wx58
then yyQ390(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else yyAction139(strm, yyNO_MATCH)
else if inp = 0wx64
then yyQ386(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else yyAction139(strm, yyNO_MATCH)
else if inp = 0wx6E
then yyAction139(strm, yyNO_MATCH)
else if inp < 0wx6E
then if inp = 0wx6A
then yyAction139(strm, yyNO_MATCH)
else if inp < 0wx6A
then if inp = 0wx69
then yyQ384(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else yyAction139(strm, yyNO_MATCH)
else if inp = 0wx6D
then yyQ387(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else yyAction139(strm, yyNO_MATCH)
else if inp = 0wx76
then yyAction139(strm, yyNO_MATCH)
else if inp < 0wx76
then if inp = 0wx75
then yyQ385(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else yyAction139(strm, yyNO_MATCH)
else if inp = 0wx78
then yyQ390(strm', yyMATCH(strm, yyAction139, yyNO_MATCH))
else yyAction139(strm, yyNO_MATCH)
(* end case *))
fun yyQ89 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction133(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx41
then yyQ89(strm', yyMATCH(strm, yyAction133, yyNO_MATCH))
else if inp < 0wx41
then if inp = 0wx25
then yyAction133(strm, yyNO_MATCH)
else if inp < 0wx25
then if inp = 0wx24
then yyQ89(strm', yyMATCH(strm, yyAction133, yyNO_MATCH))
else yyAction133(strm, yyNO_MATCH)
else if inp = 0wx30
then yyQ89(strm', yyMATCH(strm, yyAction133, yyNO_MATCH))
else if inp < 0wx30
then yyAction133(strm, yyNO_MATCH)
else if inp <= 0wx39
then yyQ89(strm', yyMATCH(strm, yyAction133, yyNO_MATCH))
else yyAction133(strm, yyNO_MATCH)
else if inp = 0wx60
then yyAction133(strm, yyNO_MATCH)
else if inp < 0wx60
then if inp = 0wx5B
then yyAction133(strm, yyNO_MATCH)
else if inp < 0wx5B
then yyQ89(strm', yyMATCH(strm, yyAction133, yyNO_MATCH))
else if inp = 0wx5F
then yyQ89(strm', yyMATCH(strm, yyAction133, yyNO_MATCH))
else yyAction133(strm, yyNO_MATCH)
else if inp <= 0wx7A
then yyQ89(strm', yyMATCH(strm, yyAction133, yyNO_MATCH))
else yyAction133(strm, yyNO_MATCH)
(* end case *))
fun yyQ65 (strm, lastMatch) = (case (yygetc(strm))
of NONE => yyAction133(strm, yyNO_MATCH)
| SOME(inp, strm') =>
if inp = 0wx41
then yyQ89(strm', yyMATCH(strm, yyAction133, yyNO_MATCH))
else if inp < 0wx41
then if inp = 0wx25
then yyAction133(strm, yyNO_MATCH)
else if inp < 0wx25
then if inp = 0wx24
then yyQ89(strm', yyMATCH(strm, yyAction133, yyNO_MATCH))
else yyAction133(strm, yyNO_MATCH)
else if inp = 0wx30
then yyQ89(strm', yyMATCH(strm, yyAction133, yyNO_MATCH))
else if inp < 0wx30
then yyAction133(strm, yyNO_MATCH)
else if inp <= 0wx39
then yyQ89(strm', yyMATCH(strm, yyAction133, yyNO_MATCH))
else yyAction133(strm, yyNO_MATCH)
else if inp = 0wx60
then yyAction133(strm, yyNO_MATCH)
else if inp < 0wx60