-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathird.h
2539 lines (1790 loc) · 91 KB
/
ird.h
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
#ifndef __IR_ird__
#define __IR_ird__
#define _IR_offsetof(type, field) ((char *)&((type *) 64)->field - (char *) 64)
#line 25 "./ird.sprut"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* #ifdef HAVE_CONFIG_H */
#include <ctype.h>
#include "vlobject.h"
#include "objstack.h"
#include "position.h"
#include <assert.h>
/* Definitions of predefined types: */
typedef int integer_t;
typedef int bool_t;
typedef char *string_t;
/* All bit operations are executed by the following elements. */
typedef unsigned int bit_string_element_t;
/* Token string is given by its number (0, 1, ...). */
typedef long int token_string_t;
/* Variable length bit string. */
struct context_t
{
vlo_t bit_string;
};
typedef struct context_t *context_t;
#line 50 "ird.h"
typedef enum IR_node_mode_enum
{
IR_NM_node,
IR_NM_identifier_or_literal,
IR_NM_identifier,
IR_NM_literal,
IR_NM_string,
IR_NM_number,
IR_NM_code_insertion,
IR_NM_additional_code,
IR_NM_definition,
IR_NM_start_definition,
IR_NM_code,
IR_NM_yacc_code,
IR_NM_local_code,
IR_NM_import_code,
IR_NM_export_code,
IR_NM_union_code,
IR_NM_scanner_definition,
IR_NM_expect_definition,
IR_NM_symbol_definition,
IR_NM_token_definition,
IR_NM_left_definition,
IR_NM_right_definition,
IR_NM_nonassoc_definition,
IR_NM_type_definition,
IR_NM_symbol,
IR_NM_rule,
IR_NM_pattern,
IR_NM_alternative,
IR_NM_sequence,
IR_NM_separator_iteration,
IR_NM_sequence_element,
IR_NM_control_point,
IR_NM_default,
IR_NM_star_iteration,
IR_NM_plus_iteration,
IR_NM_code_insertion_atom,
IR_NM_unit,
IR_NM_group,
IR_NM_range_atom,
IR_NM_range_no_left_bound_atom,
IR_NM_range_no_right_bound_atom,
IR_NM_range_no_left_right_bounds_atom,
IR_NM_identifier_or_literal_atom,
IR_NM_string_atom,
IR_NM_description,
IR_NM_denotation,
IR_NM_single_definition,
IR_NM_single_term_definition,
IR_NM_literal_range_definition,
IR_NM_single_nonterm_definition,
IR_NM_canonical_rule,
IR_NM_right_hand_side_element,
IR_NM_canonical_rule_element,
IR_NM_canonical_rule_end,
IR_NM_LR_situation,
IR_NM_LR_set,
IR_NM_LR_set_look_ahead_trie_node,
IR_NM_back_track_alternative,
IR_NM_conflict,
IR_NM_regular_arc,
IR_NM_rule_list_element,
IR_NM_LR_core,
IR_NM_DeRemer_dependence,
IR_NM_LR_set_dependence,
IR_NM_shift_dependence,
IR_NM_shift_LR_situation_dependence,
IR_NM_dependence_list_element,
IR_NM__root,
IR_NM__error
} IR_node_mode_t;
extern short _IR_node_level [];
extern unsigned char _IR_SF_node [];
extern unsigned char _IR_SF_identifier_or_literal [];
extern unsigned char _IR_SF_identifier [];
extern unsigned char _IR_SF_literal [];
extern unsigned char _IR_SF_string [];
extern unsigned char _IR_SF_number [];
extern unsigned char _IR_SF_code_insertion [];
extern unsigned char _IR_SF_additional_code [];
extern unsigned char _IR_SF_definition [];
extern unsigned char _IR_SF_start_definition [];
extern unsigned char _IR_SF_code [];
extern unsigned char _IR_SF_yacc_code [];
extern unsigned char _IR_SF_local_code [];
extern unsigned char _IR_SF_import_code [];
extern unsigned char _IR_SF_export_code [];
extern unsigned char _IR_SF_union_code [];
extern unsigned char _IR_SF_scanner_definition [];
extern unsigned char _IR_SF_expect_definition [];
extern unsigned char _IR_SF_symbol_definition [];
extern unsigned char _IR_SF_token_definition [];
extern unsigned char _IR_SF_left_definition [];
extern unsigned char _IR_SF_right_definition [];
extern unsigned char _IR_SF_nonassoc_definition [];
extern unsigned char _IR_SF_type_definition [];
extern unsigned char _IR_SF_symbol [];
extern unsigned char _IR_SF_rule [];
extern unsigned char _IR_SF_pattern [];
extern unsigned char _IR_SF_alternative [];
extern unsigned char _IR_SF_sequence [];
extern unsigned char _IR_SF_separator_iteration [];
extern unsigned char _IR_SF_sequence_element [];
extern unsigned char _IR_SF_control_point [];
extern unsigned char _IR_SF_default [];
extern unsigned char _IR_SF_star_iteration [];
extern unsigned char _IR_SF_plus_iteration [];
extern unsigned char _IR_SF_code_insertion_atom [];
extern unsigned char _IR_SF_unit [];
extern unsigned char _IR_SF_group [];
extern unsigned char _IR_SF_range_atom [];
extern unsigned char _IR_SF_range_no_left_bound_atom [];
extern unsigned char _IR_SF_range_no_right_bound_atom [];
extern unsigned char _IR_SF_range_no_left_right_bounds_atom [];
extern unsigned char _IR_SF_identifier_or_literal_atom [];
extern unsigned char _IR_SF_string_atom [];
extern unsigned char _IR_SF_description [];
extern unsigned char _IR_SF_denotation [];
extern unsigned char _IR_SF_single_definition [];
extern unsigned char _IR_SF_single_term_definition [];
extern unsigned char _IR_SF_literal_range_definition [];
extern unsigned char _IR_SF_single_nonterm_definition [];
extern unsigned char _IR_SF_canonical_rule [];
extern unsigned char _IR_SF_right_hand_side_element [];
extern unsigned char _IR_SF_canonical_rule_element [];
extern unsigned char _IR_SF_canonical_rule_end [];
extern unsigned char _IR_SF_LR_situation [];
extern unsigned char _IR_SF_LR_set [];
extern unsigned char _IR_SF_LR_set_look_ahead_trie_node [];
extern unsigned char _IR_SF_back_track_alternative [];
extern unsigned char _IR_SF_conflict [];
extern unsigned char _IR_SF_regular_arc [];
extern unsigned char _IR_SF_rule_list_element [];
extern unsigned char _IR_SF_LR_core [];
extern unsigned char _IR_SF_DeRemer_dependence [];
extern unsigned char _IR_SF_LR_set_dependence [];
extern unsigned char _IR_SF_shift_dependence [];
extern unsigned char _IR_SF_shift_LR_situation_dependence [];
extern unsigned char _IR_SF_dependence_list_element [];
extern unsigned char _IR_SF__root [];
extern unsigned char _IR_SF__error [];
extern unsigned char *_IR_is_type[];
extern unsigned char _IR_D_identifier_or_literal [];
extern unsigned char _IR_D_pattern [];
extern unsigned char _IR_D_iteration_unit [];
extern unsigned char _IR_D_corresponding_single_nonterm_definition [];
extern unsigned char _IR_D_pass_number [];
extern unsigned char _IR_D_next_cp_flag [];
extern unsigned char _IR_D_canonical_rule [];
extern unsigned char _IR_D_context [];
extern unsigned char _IR_D_LR_set [];
extern unsigned char _IR_D_result_LR_set_will_be_on_the_stack [];
extern void *_IR_class_structure_array [];
typedef struct IR_node *IR_node_t;
typedef struct _IR_double_link *IR_double_link_t;
struct _IR_double_link
{
IR_node_t field_itself;
IR_node_t link_owner;
void (*set_function) (IR_node_t, IR_node_t);
IR_double_link_t previous_link;
IR_double_link_t next_link;
};
struct _IR_S_node
{
position_t position;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_node _IR_S_node;
} _IR_node;
struct _IR_S_identifier_or_literal
{
struct _IR_S_node _IR_M_node;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_identifier_or_literal _IR_S_identifier_or_literal;
} _IR_identifier_or_literal;
struct _IR_S_identifier
{
struct _IR_S_identifier_or_literal _IR_M_identifier_or_literal;
string_t identifier_itself;
bool_t dot_presence_flag;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_identifier _IR_S_identifier;
} _IR_identifier;
struct _IR_S_literal
{
struct _IR_S_identifier_or_literal _IR_M_identifier_or_literal;
string_t character_representation;
integer_t literal_code;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_literal _IR_S_literal;
} _IR_literal;
struct _IR_S_string
{
struct _IR_S_node _IR_M_node;
string_t string_representation;
string_t string_itself;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_string _IR_S_string;
} _IR_string;
struct _IR_S_number
{
struct _IR_S_node _IR_M_node;
integer_t number_value;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_number _IR_S_number;
} _IR_number;
struct _IR_S_code_insertion
{
struct _IR_S_node _IR_M_node;
string_t code_insertion_itself;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_code_insertion _IR_S_code_insertion;
} _IR_code_insertion;
struct _IR_S_additional_code
{
struct _IR_S_node _IR_M_node;
string_t additional_code_itself;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_additional_code _IR_S_additional_code;
} _IR_additional_code;
struct _IR_S_definition
{
struct _IR_S_node _IR_M_node;
IR_node_t next_definition;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_definition _IR_S_definition;
} _IR_definition;
struct _IR_S_start_definition
{
struct _IR_S_definition _IR_M_definition;
IR_node_t identifier;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_start_definition _IR_S_start_definition;
} _IR_start_definition;
struct _IR_S_code
{
struct _IR_S_definition _IR_M_definition;
IR_node_t code_itself;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_code _IR_S_code;
} _IR_code;
struct _IR_S_yacc_code
{
struct _IR_S_code _IR_M_code;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_yacc_code _IR_S_yacc_code;
} _IR_yacc_code;
struct _IR_S_local_code
{
struct _IR_S_code _IR_M_code;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_local_code _IR_S_local_code;
} _IR_local_code;
struct _IR_S_import_code
{
struct _IR_S_code _IR_M_code;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_import_code _IR_S_import_code;
} _IR_import_code;
struct _IR_S_export_code
{
struct _IR_S_code _IR_M_code;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_export_code _IR_S_export_code;
} _IR_export_code;
struct _IR_S_union_code
{
struct _IR_S_code _IR_M_code;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_union_code _IR_S_union_code;
} _IR_union_code;
struct _IR_S_scanner_definition
{
struct _IR_S_definition _IR_M_definition;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_scanner_definition _IR_S_scanner_definition;
} _IR_scanner_definition;
struct _IR_S_expect_definition
{
struct _IR_S_definition _IR_M_definition;
IR_node_t expected_number;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_expect_definition _IR_S_expect_definition;
} _IR_expect_definition;
struct _IR_S_symbol_definition
{
struct _IR_S_definition _IR_M_definition;
IR_node_t symbol_list;
IR_node_t tag;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_symbol_definition _IR_S_symbol_definition;
} _IR_symbol_definition;
struct _IR_S_token_definition
{
struct _IR_S_symbol_definition _IR_M_symbol_definition;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_token_definition _IR_S_token_definition;
} _IR_token_definition;
struct _IR_S_left_definition
{
struct _IR_S_symbol_definition _IR_M_symbol_definition;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_left_definition _IR_S_left_definition;
} _IR_left_definition;
struct _IR_S_right_definition
{
struct _IR_S_symbol_definition _IR_M_symbol_definition;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_right_definition _IR_S_right_definition;
} _IR_right_definition;
struct _IR_S_nonassoc_definition
{
struct _IR_S_symbol_definition _IR_M_symbol_definition;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_nonassoc_definition _IR_S_nonassoc_definition;
} _IR_nonassoc_definition;
struct _IR_S_type_definition
{
struct _IR_S_symbol_definition _IR_M_symbol_definition;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_type_definition _IR_S_type_definition;
} _IR_type_definition;
struct _IR_S_symbol
{
struct _IR_S_node _IR_M_node;
IR_node_t identifier_or_literal;
IR_node_t number;
IR_node_t next_symbol;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_symbol _IR_S_symbol;
} _IR_symbol;
struct _IR_S_rule
{
struct _IR_S_node _IR_M_node;
IR_node_t nonterm_identifier;
IR_node_t pattern;
IR_node_t next_rule;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_rule _IR_S_rule;
} _IR_rule;
struct _IR_S_pattern
{
struct _IR_S_node _IR_M_node;
IR_node_t alternatives_list;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_pattern _IR_S_pattern;
} _IR_pattern;
struct _IR_S_denotation
{
IR_node_t corresponding_single_nonterm_definition;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_denotation _IR_S_denotation;
} _IR_denotation;
struct _IR_S_alternative
{
struct _IR_S_node _IR_M_node;
struct _IR_S_denotation _IR_M_denotation;
IR_node_t next_alternative;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_alternative _IR_S_alternative;
} _IR_alternative;
struct _IR_S_sequence
{
struct _IR_S_alternative _IR_M_alternative;
IR_node_t sequence;
IR_node_t precedence_identifier_or_literal;
IR_node_t max_look_ahead_number;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_sequence _IR_S_sequence;
} _IR_sequence;
struct _IR_S_separator_iteration
{
struct _IR_S_alternative _IR_M_alternative;
IR_node_t iteration_sequence;
IR_node_t iteration_precedence_identifier_or_literal;
IR_node_t iteration_max_look_ahead_number;
IR_node_t separator_sequence;
IR_node_t separator_precedence_identifier_or_literal;
IR_node_t separator_max_look_ahead_number;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_separator_iteration _IR_S_separator_iteration;
} _IR_separator_iteration;
struct _IR_S_sequence_element
{
struct _IR_S_node _IR_M_node;
struct _IR_S_denotation _IR_M_denotation;
IR_node_t next_sequence_element;
IR_node_t sequence_element_identifier;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_sequence_element _IR_S_sequence_element;
} _IR_sequence_element;
struct _IR_S_control_point
{
struct _IR_S_sequence_element _IR_M_sequence_element;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_control_point _IR_S_control_point;
} _IR_control_point;
struct _IR_S_default
{
struct _IR_S_sequence_element _IR_M_sequence_element;
IR_node_t default_pattern;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_default _IR_S_default;
} _IR_default;
struct _IR_S_star_iteration
{
struct _IR_S_sequence_element _IR_M_sequence_element;
IR_node_t iteration_unit;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_star_iteration _IR_S_star_iteration;
} _IR_star_iteration;
struct _IR_S_plus_iteration
{
struct _IR_S_sequence_element _IR_M_sequence_element;
IR_node_t iteration_unit;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_plus_iteration _IR_S_plus_iteration;
} _IR_plus_iteration;
struct _IR_S_code_insertion_atom
{
struct _IR_S_sequence_element _IR_M_sequence_element;
IR_node_t code_insertion;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_code_insertion_atom _IR_S_code_insertion_atom;
} _IR_code_insertion_atom;
struct _IR_S_unit
{
struct _IR_S_sequence_element _IR_M_sequence_element;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_unit _IR_S_unit;
} _IR_unit;
struct _IR_S_group
{
struct _IR_S_unit _IR_M_unit;
IR_node_t pattern;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_group _IR_S_group;
} _IR_group;
struct _IR_S_range_atom
{
struct _IR_S_unit _IR_M_unit;
IR_node_t left_bound;
IR_node_t right_bound;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_range_atom _IR_S_range_atom;
} _IR_range_atom;
struct _IR_S_range_no_left_bound_atom
{
struct _IR_S_range_atom _IR_M_range_atom;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_range_no_left_bound_atom _IR_S_range_no_left_bound_atom;
} _IR_range_no_left_bound_atom;
struct _IR_S_range_no_right_bound_atom
{
struct _IR_S_range_atom _IR_M_range_atom;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_range_no_right_bound_atom _IR_S_range_no_right_bound_atom;
} _IR_range_no_right_bound_atom;
struct _IR_S_range_no_left_right_bounds_atom
{
struct _IR_S_range_atom _IR_M_range_atom;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_range_no_left_right_bounds_atom _IR_S_range_no_left_right_bounds_atom;
} _IR_range_no_left_right_bounds_atom;
struct _IR_S_identifier_or_literal_atom
{
struct _IR_S_unit _IR_M_unit;
IR_node_t identifier_or_literal;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_identifier_or_literal_atom _IR_S_identifier_or_literal_atom;
} _IR_identifier_or_literal_atom;
struct _IR_S_string_atom
{
struct _IR_S_unit _IR_M_unit;
IR_node_t string;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_string_atom _IR_S_string_atom;
} _IR_string_atom;
struct _IR_S_description
{
struct _IR_S_node _IR_M_node;
IR_node_t definition_list;
IR_node_t rule_list;
IR_node_t additional_code;
IR_node_t union_code;
IR_node_t single_definition_list;
integer_t tokens_number;
integer_t nonterminals_number;
integer_t canonical_rules_number;
integer_t duplicated_patterns_number;
IR_node_t canonical_rule_list;
IR_node_t axiom_identifier;
IR_node_t axiom_definition;
bool_t scanner_flag;
integer_t expected_shift_reduce_conflicts_number;
IR_node_t LR_core_list;
integer_t splitted_LR_sets_number;
integer_t LR_sets_number;
integer_t pushed_LR_sets_number;
integer_t reduces_number;
integer_t all_number_of_regular_arcs;
integer_t number_of_regular_arcs;
integer_t token_equivalence_classes_number;
integer_t duplicated_actions;
bool_t back_tracking_exists;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_description _IR_S_description;
} _IR_description;
struct _IR_S_single_definition
{
struct _IR_S_node _IR_M_node;
IR_node_t type;
bool_t accessibility_flag;
IR_node_t single_definition_usage_list;
IR_node_t identifier_or_literal;
IR_node_t next_single_definition;
IR_node_t last_symbol_LR_situation_processed;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_single_definition _IR_S_single_definition;
} _IR_single_definition;
struct _IR_S_single_term_definition
{
struct _IR_S_single_definition _IR_M_single_definition;
integer_t token_order_number;
integer_t value;
integer_t priority;
bool_t left_assoc_flag;
bool_t right_assoc_flag;
bool_t nonassoc_flag;
bool_t deletion_flag;
IR_node_t next_equivalence_class_token;
integer_t equivalence_class_number;
bool_t token_was_processed_on_equivalence;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_single_term_definition _IR_S_single_term_definition;
} _IR_single_term_definition;
struct _IR_S_literal_range_definition
{
struct _IR_S_single_term_definition _IR_M_single_term_definition;
integer_t right_range_bound_value;
bool_t bounds_have_explicit_values;
IR_node_t right_range_bound_literal;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_literal_range_definition _IR_S_literal_range_definition;
} _IR_literal_range_definition;
struct _IR_S_single_nonterm_definition
{
struct _IR_S_single_definition _IR_M_single_definition;
integer_t nonterm_order_number;
IR_node_t nonterm_canonical_rule_list;
bool_t derivation_ability_flag;
integer_t pass_number;
IR_node_t corresponding_pattern;
integer_t minimal_derived_string_length;
context_t relation_FIRST;
context_t next_iter_relation_FIRST;
bool_t process_nonterminal_on_its_process_pass;
bool_t pattern_has_been_output;
};
typedef struct
{
IR_node_mode_t _IR_node_mode;
IR_double_link_t _IR_first_link;
struct _IR_S_single_nonterm_definition _IR_S_single_nonterm_definition;
} _IR_single_nonterm_definition;
struct _IR_S_canonical_rule
{