-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrans_parser.adb
8004 lines (5664 loc) · 189 KB
/
trans_parser.adb
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
with Text_IO;
use Text_IO;
with trans;
use trans;
with trans_Goto;
use trans_Goto;
with trans_Shift_Reduce;
use trans_Shift_Reduce;
with trans_Tokens;
use trans_Tokens;
package body trans_Parser is
package Language_YY2_Lexical_Analyzer renames trans;
use Language_YY2_Lexical_Analyzer;
Parse_Tree : Parseable_Ptr;
Token_String : String_Ptr;
procedure YYError(S : in String := "Syntax Error") is
begin
Put_Line("Syntax error on line " & integer'image(trans.Get_Current_Line));
end YYError;
procedure YYParse is
-- Rename User Defined Packages to Internal Names.
package yy_goto_tables renames
Trans_Goto;
package yy_shift_reduce_tables renames
Trans_Shift_Reduce;
package yy_tokens renames
Trans_Tokens;
package yy2_tokens renames Language_YY2_Lexical_Analyzer;
use yy2_tokens;
use yy_tokens, yy_goto_tables, yy_shift_reduce_tables;
procedure yyerrok;
procedure yyclearin;
package yy is
-- the size of the value and state stacks
stack_size : constant Natural := 300;
-- subtype rule is natural;
subtype parse_state is natural;
-- subtype nonterminal is integer;
-- encryption constants
default : constant := -1;
first_shift_entry : constant := 0;
accept_code : constant := -3001;
error_code : constant := -3000;
-- stack data used by the parser
tos : natural := 0;
value_stack : array(0..stack_size) of yy_tokens.yystype;
state_stack : array(0..stack_size) of parse_state;
-- current input symbol and action the parser is on
action : integer;
rule_id : rule;
input_symbol : yy2_tokens.token;
-- error recovery flag
error_flag : natural := 0;
-- indicates 3 - (number of valid shifts after an error occurs)
look_ahead : boolean := true;
index : integer;
-- Is Debugging option on or off
DEBUG : constant boolean := FALSE;
end yy;
function goto_state
(state : yy.parse_state;
sym : nonterminal) return yy.parse_state;
function parse_action
(state : yy.parse_state;
t : yy2_tokens.token) return integer;
pragma inline(goto_state, parse_action);
function goto_state(state : yy.parse_state;
sym : nonterminal) return yy.parse_state is
index : integer;
begin
index := goto_offset(state);
while integer(goto_matrix(index).nonterm) /= sym loop
index := index + 1;
end loop;
return integer(goto_matrix(index).newstate);
end goto_state;
function parse_action(state : yy.parse_state;
t : yy2_tokens.token) return integer is
index : integer;
tok_pos : integer;
default : constant integer := -1;
begin
tok_pos := yy2_tokens.token'pos(t);
index := shift_reduce_offset(state);
while integer(shift_reduce_matrix(index).t) /= tok_pos and then
integer(shift_reduce_matrix(index).t) /= default
loop
index := index + 1;
end loop;
return integer(shift_reduce_matrix(index).act);
end parse_action;
-- error recovery stuff
procedure handle_error is
temp_action : integer;
begin
if yy.error_flag = 3 then -- no shift yet, clobber input.
if yy.debug then
text_io.put_line("Ayacc.YYParse: Error Recovery Clobbers " &
yy2_tokens.token'image(yy.input_symbol));
end if;
if yy.input_symbol = yy2_tokens.end_of_input then -- don't discard,
if yy.debug then
text_io.put_line("Ayacc.YYParse: Can't discard END_OF_INPUT, quiting...");
end if;
raise yy_tokens.syntax_error;
end if;
yy.look_ahead := true; -- get next token
return; -- and try again...
end if;
if yy.error_flag = 0 then -- brand new error
yyerror("Syntax Error");
end if;
yy.error_flag := 3;
-- find state on stack where error is a valid shift --
if yy.debug then
text_io.put_line("Ayacc.YYParse: Looking for state with error as valid shift");
end if;
loop
if yy.debug then
text_io.put_line("Ayacc.YYParse: Examining State " &
yy.parse_state'image(yy.state_stack(yy.tos)));
end if;
temp_action := parse_action(yy.state_stack(yy.tos), error);
if temp_action >= yy.first_shift_entry then
if yy.tos = yy.stack_size then
text_io.put_line(" Stack size exceeded on state_stack");
raise yy_Tokens.syntax_error;
end if;
yy.tos := yy.tos + 1;
yy.state_stack(yy.tos) := temp_action;
exit;
end if;
Decrement_Stack_Pointer :
begin
yy.tos := yy.tos - 1;
exception
when Constraint_Error =>
yy.tos := 0;
end Decrement_Stack_Pointer;
if yy.tos = 0 then
if yy.debug then
text_io.put_line("Ayacc.YYParse: Error recovery popped entire stack, aborting...");
end if;
raise yy_tokens.syntax_error;
end if;
end loop;
if yy.debug then
text_io.put_line("Ayacc.YYParse: Shifted error token in state " &
yy.parse_state'image(yy.state_stack(yy.tos)));
end if;
end handle_error;
-- print debugging information for a shift operation
procedure shift_debug(state_id: yy.parse_state; lexeme: yy2_tokens.token) is
begin
text_io.put_line("Ayacc.YYParse: Shift "& yy.parse_state'image(state_id)&" on input symbol "&
yy2_tokens.token'image(lexeme) );
end;
-- print debugging information for a reduce operation
procedure reduce_debug(rule_id: rule; state_id: yy.parse_state) is
begin
text_io.put_line("Ayacc.YYParse: Reduce by rule "&rule'image(rule_id)&" goto state "&
yy.parse_state'image(state_id));
end;
-- make the parser believe that 3 valid shifts have occured.
-- used for error recovery.
procedure yyerrok is
begin
yy.error_flag := 0;
end yyerrok;
-- called to clear input symbol that caused an error.
procedure yyclearin is
begin
-- yy.input_symbol := Get_Token;
yy.look_ahead := true;
end yyclearin;
begin
-- initialize by pushing state 0 and getting the first input symbol
yy.state_stack(yy.tos) := 0;
loop
yy.index := shift_reduce_offset(yy.state_stack(yy.tos));
if integer(shift_reduce_matrix(yy.index).t) = yy.default then
yy.action := integer(shift_reduce_matrix(yy.index).act);
else
if yy.look_ahead then
yy.look_ahead := false;
yy.input_symbol := Get_Token;
end if;
yy.action :=
parse_action(yy.state_stack(yy.tos), yy.input_symbol);
end if;
if yy.action >= yy.first_shift_entry then -- SHIFT
if yy.debug then
shift_debug(yy.action, yy.input_symbol);
end if;
-- Enter new state
if yy.tos = yy.stack_size then
text_io.put_line(" Stack size exceeded on state_stack");
raise yy_Tokens.syntax_error;
end if;
yy.tos := yy.tos + 1;
yy.state_stack(yy.tos) := yy.action;
yy.value_stack(yy.tos) := yylval;
if yy.error_flag > 0 then -- indicate a valid shift
yy.error_flag := yy.error_flag - 1;
end if;
-- Advance lookahead
yy.look_ahead := true;
elsif yy.action = yy.error_code then -- ERROR
handle_error;
elsif yy.action = yy.accept_code then
if yy.debug then
text_io.put_line("Ayacc.YYParse: Accepting Grammar...");
end if;
exit;
else -- Reduce Action
-- Convert action into a rule
yy.rule_id := -1 * yy.action;
-- Execute User Action
-- user_action(yy.rule_id);
case yy.rule_id is
when 1 =>
--#line 122
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,CHAR_LITERAL_token);
when 2 =>
--#line 126
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,STRING_LITERAL_token);
when 3 =>
--#line 130
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,BASED_LITERAL_token);
when 4 =>
--#line 134
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,DECIMAL_LITERAL_token);
when 5 =>
--#line 138
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,IDENTIFIER_token);
when 6 =>
--#line 142
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,TICK_token);
when 7 =>
--#line 146
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,BANG_token);
when 8 =>
--#line 150
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,PIPE_token);
when 9 =>
--#line 154
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,GT_token);
when 10 =>
--#line 158
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,EQ_token);
when 11 =>
--#line 162
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,LT_token);
when 12 =>
--#line 166
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,SEMICOLON_token);
when 13 =>
--#line 170
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,COLON_token);
when 14 =>
--#line 174
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,SLASH_token);
when 15 =>
--#line 178
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,DOT_token);
when 16 =>
--#line 182
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,MINUS_token);
when 17 =>
--#line 186
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,COMMA_token);
when 18 =>
--#line 190
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,PLUS_token);
when 19 =>
--#line 194
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,STAR_token);
when 20 =>
--#line 198
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,R_PAREN_token);
when 21 =>
--#line 202
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,L_PAREN_token);
when 22 =>
--#line 206
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,CONCAT_token);
when 23 =>
--#line 210
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,BOX_token);
when 24 =>
--#line 214
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,RIGHT_LABEL_BRACKET_token);
when 25 =>
--#line 218
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,LEFT_LABEL_BRACKET_token);
when 26 =>
--#line 222
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,LESS_THAN_OR_EQUAL_token);
when 27 =>
--#line 226
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,GREATER_THAN_OR_EQUAL_token);
when 28 =>
--#line 230
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,INEQUALITY_token);
when 29 =>
--#line 234
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,ASSIGNMENT_token);
when 30 =>
--#line 238
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,EXPONENT_token);
when 31 =>
--#line 242
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,DOUBLE_DOT_token);
when 32 =>
--#line 246
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,ARROW_token);
when 33 =>
--#line 250
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,XOR_token);
when 34 =>
--#line 254
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,WITH_token);
when 35 =>
--#line 258
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,WHILE_token);
when 36 =>
--#line 262
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,WHEN_token);
when 37 =>
--#line 266
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,USE_token);
when 38 =>
--#line 270
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,UNTIL_token);
when 39 =>
--#line 274
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,TYPE_token);
when 40 =>
--#line 278
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,THEN_token);
when 41 =>
--#line 282
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,TERMINATE_token);
when 42 =>
--#line 286
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,TASK_token);
when 43 =>
--#line 290
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,TAGGED_token);
when 44 =>
--#line 294
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,SUBTYPE_token);
when 45 =>
--#line 298
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,SEPARATE_token);
when 46 =>
--#line 302
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,SELECT_token);
when 47 =>
--#line 306
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,REVERSE_token);
when 48 =>
--#line 310
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,RETURN_token);
when 49 =>
--#line 314
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,REQUEUE_token);
when 50 =>
--#line 318
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,RENAMES_token);
when 51 =>
--#line 322
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,REM_token);
when 52 =>
--#line 326
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,RECORD_token);
when 53 =>
--#line 330
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,RANGE_token);
when 54 =>
--#line 334
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,RAISE_token);
when 55 =>
--#line 338
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,PROTECTED_token);
when 56 =>
--#line 342
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,PROCEDURE_token);
when 57 =>
--#line 346
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,PRIVATE_token);
when 58 =>
--#line 350
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,PRAGMA_token);
when 59 =>
--#line 354
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,PACKAGE_token);
when 60 =>
--#line 358
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,OUT_token);
when 61 =>
--#line 362
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,OTHERS_token);
when 62 =>
--#line 366
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,OR_token);
when 63 =>
--#line 370
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,OF_token);
when 64 =>
--#line 374
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,NULL_token);
when 65 =>
--#line 378
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,NOT_token);
when 66 =>
--#line 382
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,NEW_token);
when 67 =>
--#line 386
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,MOD_token);
when 68 =>
--#line 390
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,LOOP_token);
when 69 =>
--#line 394
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,LIMITED_token);
when 70 =>
--#line 398
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,IS_token);
when 71 =>
--#line 402
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,IN_token);
when 72 =>
--#line 406
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,IF_token);
when 73 =>
--#line 410
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,GOTO_token);
when 74 =>
--#line 414
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,GENERIC_token);
when 75 =>
--#line 418
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,FUNCTION_token);
when 76 =>
--#line 422
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,FOR_token);
when 77 =>
--#line 426
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,EXIT_token);
when 78 =>
--#line 430
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,EXCEPTION_token);
when 79 =>
--#line 434
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,ENTRY_token);
when 80 =>
--#line 438
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,END_token);
when 81 =>
--#line 442
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,ELSIF_token);
when 82 =>
--#line 446
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,ELSE_token);
when 83 =>
--#line 450
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,DO_token);
when 84 =>
--#line 454
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,DIGITS_token);
when 85 =>
--#line 458
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,DELTA_token);
when 86 =>
--#line 462
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,DELAY_token);
when 87 =>
--#line 466
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,DECLARE_token);
when 88 =>
--#line 470
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,CONSTANT_token);
when 89 =>
--#line 474
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,CASE_token);
when 90 =>
--#line 478
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,BODY_token);
when 91 =>
--#line 482
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,BEGIN_token);
when 92 =>
--#line 486
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,AT_token);
when 93 =>
--#line 490
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,ARRAY_token);
when 94 =>
--#line 494
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,AND_token);
when 95 =>
--#line 498
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,ALL_token);
when 96 =>
--#line 502
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,ALIASED_token);
when 97 =>
--#line 506
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,ACCESS_token);
when 98 =>
--#line 510
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,ACCEPT_token);
when 99 =>
--#line 514
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,ABSTRACT_token);
when 100 =>
--#line 518
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,ABS_token);
when 101 =>
--#line 522
Token_String := new String'(Get_Token_String);
yyval := new Parseable_Token'(Get_Current_Line,Get_Current_Column-Token_String.all'Length,
Token_String,ABORT_token);
when 102 =>
--#line 527
Parse_Tree :=
yy.value_stack(yy.tos);
when 103 =>
--#line 530