forked from doxygen/doxygen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVhdlParser.h
9000 lines (7806 loc) · 168 KB
/
VhdlParser.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 VHDLPARSER_H
#define VHDLPARSER_H
#include "JavaCC.h"
#include "CharStream.h"
#include "Token.h"
#include "TokenManager.h"
#include "VhdlParserTokenManager.h"
#include "vhdljjparser.h"
#include "VhdlParserConstants.h"
#include "ErrorHandler.h"
namespace vhdl {
namespace parser {
struct JJCalls {
int gen;
int arg;
JJCalls* next;
Token* first;
~JJCalls() { if (next) delete next; }
JJCalls() { next = NULL; arg = 0; gen = -1; first = NULL; }
};
class VhdlParser {
public:
QCString abstract_literal();
QCString access_type_definition();
QCString actual_designator();
QCString actual_parameter_part();
QCString actual_part();
QCString adding_operator();
QCString aggregate();
QCString alias_declaration();
QCString alias_designator();
void allocator();
void architecture_body();
void architecture_declarative_part();
void architecture_statement_part();
QCString array_type_definition();
QCString assertion();
QCString assertion_statement();
QCString association_element();
QCString association_list();
QCString attribute_declaration();
QCString attribute_designator();
QCString attribute_name();
QCString attribute_specification();
QCString base();
QCString base_specifier();
QCString base_unit_declaration();
QCString based_integer();
QCString based_literal();
QCString basic_identifier();
void binding_indication();
QCString bit_string_literal();
QCString bit_value();
void block_configuration();
void block_declarative_item();
void block_declarative_part();
void block_header();
void block_specification();
void block_statement();
void block_statement_part();
void case_statement();
void case_statement_alternative();
QCString character_literal();
QCString choice();
QCString choices();
void component_configuration();
void component_declaration();
void component_instantiation_statement();
void component_specification();
QCString composite_type_definition();
void concurrent_assertion_statement();
void concurrent_procedure_call_statement();
void concurrent_signal_assignment_statement();
void concurrent_statement();
QCString condition();
QCString condition_clause();
void conditional_signal_assignment();
void conditional_waveforms();
void configuration_declaration();
void configuration_declarative_item();
void configuration_declarative_part();
void configuration_item();
void configuration_specification();
QCString constant_declaration();
QCString constraint_array_definition();
void context_clause();
QCString constraint();
void context_item();
QCString decimal_literal();
QCString delay_mechanism();
void design_file();
void design_unit();
QCString designator();
QCString direction();
void disconnection_specification();
void guarded_signal_specificatio();
QCString discrete_range();
QCString element_association();
QCString element_declaration();
QCString entity_aspect();
QCString entity_class();
QCString entity_class_entry();
QCString entity_class_entry_list();
void entity_declaration();
void entity_declarative_item();
void entity_declarative_part();
QCString entity_designator();
void entity_header();
QCString entity_name_list();
QCString entity_specification();
void entity_statement();
void entity_statement_part();
QCString entity_tag();
QCString enumeration_literal();
QCString enumeration_type_definition();
QCString exit_statement();
QCString expression();
QCString logop();
QCString extended_identifier();
QCString factor();
QCString file_declaration();
QCString file_logical_name();
QCString file_open_information();
QCString file_type_definition();
QCString floating_type_definition();
QCString formal_designator();
QCString formal_parameter_list();
QCString formal_part();
QCString full_type_declaration();
QCString function_call();
void generate_statement();
void generate_scheme();
void generic_clause();
QCString generic_list();
void generic_map_aspect();
QCString group_constituent();
QCString group_constituent_list();
QCString group_declaration();
QCString group_template_declaration();
void guarded_signal_specification();
QCString identifier();
QCString identifier_list();
void if_statement();
QCString incomplete_type_declaration();
QCString index_constraint();
QCString index_specification();
QCString index_subtype_definition();
QCString instantiation_unit();
QCString instantiation_list();
QCString integer();
QCString integer_type_definition();
QCString interface_declaration();
QCString interface_element();
QCString interface_file_declaration();
QCString interface_list();
QCString interface_variable_declaration();
QCString iteration_scheme();
QCString label();
QCString library_clause();
QCString library_unit();
QCString literal();
QCString logical_operator();
QCString loop_statement();
QCString miscellaneous_operator();
QCString mode();
QCString multiplying_operation();
QCString name();
QCString name_ext1();
QCString name_ext();
QCString test_att_name();
QCString indexed_name();
QCString next_statement();
QCString null_statement();
QCString numeric_literal();
QCString object_class();
QCString operator_symbol();
void options();
void package_body();
void package_body_declarative_item();
void package_body_declarative_part();
void package_declaration();
void geninter();
void package_declarative_item();
void package_declarative_part();
QCString parameter_specification();
QCString physical_literal();
QCString physical_type_definition();
void port_clause();
QCString port_list();
void port_map_aspect();
QCString primary();
void primary_unit();
QCString procedure_call();
QCString procedure_call_statement();
QCString process_declarative_item();
QCString process_declarative_part();
void process_statement();
void process_statement_part();
QCString qualified_expression();
QCString range();
QCString range_constraint();
void record_type_definition();
QCString relation();
QCString relation_operator();
QCString report_statement();
QCString return_statement();
QCString scalar_type_definition();
void secondary_unit();
QCString secondary_unit_declaration();
QCString selected_name();
void selected_signal_assignment();
void selected_waveforms();
QCString sensitivity_clause();
QCString sensitivity_list();
QCString sequence_of_statement();
QCString sequential_statement();
QCString shift_expression();
QCString shift_operator();
QCString sign();
QCString signal_assignment_statement();
void semi();
void signal_declaration();
QCString signal_kind();
QCString signal_list();
QCString signature();
QCString simple_expression();
void simple_name();
QCString slice_name();
QCString string_literal();
void subprogram_body();
void subprogram_declaration();
void subprogram_1();
QCString subprogram_declarative_item();
QCString subprogram_declarative_part();
void subprogram_kind();
void subprogram_specification();
void subprogram_statement_part();
QCString subtype_declaration();
QCString subtype_indication();
QCString suffix();
QCString target();
QCString term();
QCString timeout_clause();
QCString type_conversion();
QCString type_declaration();
QCString type_definition();
QCString type_mark();
QCString unconstraint_array_definition();
QCString use_clause();
QCString variable_assignment_statement();
QCString variable_declaration();
QCString wait_statement();
QCString waveform();
QCString waveform_element();
QCString protected_type_body();
void protected_type_body_declarative_item();
void protected_type_body_declarative_part();
QCString protected_type_declaration();
void protected_type_declarative_item();
void protected_type_declarative_part();
QCString context_ref();
void context_declaration();
QCString libustcont_stats();
void package_instantiation_declaration();
QCString interface_package_declaration();
QCString subprogram_instantiation_declaration();
void gen_assoc_list();
void gen_interface_list();
void case_scheme();
void when_stats();
void ttend();
void generate_statement_body();
void generate_statement_body1();
QCString external_name();
QCString sig_stat();
QCString external_pathname();
QCString absolute_pathname();
QCString relative_pathname();
QCString neg_list();
QCString pathname_element();
QCString pathname_element_list();
QCString package_path_name();
void conditional_signal_assignment_wave();
void conditional_waveform_assignment();
void else_wave_list();
void conditional_force_assignment();
void selected_signal_assignment_wave();
void selected_variable_assignment();
void select_name();
void selected_waveform_assignment();
void selected_force_assignment();
void sel_var_list();
void sel_wave_list();
void inout_stat();
void else_stat();
QCString interface_subprogram_declaration();
QCString iproc();
QCString ifunc();
QCString param();
void parseInline();
inline bool jj_2_1(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_1() || jj_done);
{ jj_save(0, xla); }
}
inline bool jj_2_2(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_2() || jj_done);
{ jj_save(1, xla); }
}
inline bool jj_2_3(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_3() || jj_done);
{ jj_save(2, xla); }
}
inline bool jj_2_4(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_4() || jj_done);
{ jj_save(3, xla); }
}
inline bool jj_2_5(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_5() || jj_done);
{ jj_save(4, xla); }
}
inline bool jj_2_6(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_6() || jj_done);
{ jj_save(5, xla); }
}
inline bool jj_2_7(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_7() || jj_done);
{ jj_save(6, xla); }
}
inline bool jj_2_8(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_8() || jj_done);
{ jj_save(7, xla); }
}
inline bool jj_2_9(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_9() || jj_done);
{ jj_save(8, xla); }
}
inline bool jj_2_10(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_10() || jj_done);
{ jj_save(9, xla); }
}
inline bool jj_2_11(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_11() || jj_done);
{ jj_save(10, xla); }
}
inline bool jj_2_12(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_12() || jj_done);
{ jj_save(11, xla); }
}
inline bool jj_2_13(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_13() || jj_done);
{ jj_save(12, xla); }
}
inline bool jj_2_14(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_14() || jj_done);
{ jj_save(13, xla); }
}
inline bool jj_2_15(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_15() || jj_done);
{ jj_save(14, xla); }
}
inline bool jj_2_16(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_16() || jj_done);
{ jj_save(15, xla); }
}
inline bool jj_2_17(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_17() || jj_done);
{ jj_save(16, xla); }
}
inline bool jj_2_18(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_18() || jj_done);
{ jj_save(17, xla); }
}
inline bool jj_2_19(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_19() || jj_done);
{ jj_save(18, xla); }
}
inline bool jj_2_20(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_20() || jj_done);
{ jj_save(19, xla); }
}
inline bool jj_2_21(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_21() || jj_done);
{ jj_save(20, xla); }
}
inline bool jj_2_22(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_22() || jj_done);
{ jj_save(21, xla); }
}
inline bool jj_2_23(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_23() || jj_done);
{ jj_save(22, xla); }
}
inline bool jj_2_24(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_24() || jj_done);
{ jj_save(23, xla); }
}
inline bool jj_2_25(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_25() || jj_done);
{ jj_save(24, xla); }
}
inline bool jj_2_26(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_26() || jj_done);
{ jj_save(25, xla); }
}
inline bool jj_2_27(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_27() || jj_done);
{ jj_save(26, xla); }
}
inline bool jj_2_28(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_28() || jj_done);
{ jj_save(27, xla); }
}
inline bool jj_2_29(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_29() || jj_done);
{ jj_save(28, xla); }
}
inline bool jj_2_30(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_30() || jj_done);
{ jj_save(29, xla); }
}
inline bool jj_2_31(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_31() || jj_done);
{ jj_save(30, xla); }
}
inline bool jj_2_32(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_32() || jj_done);
{ jj_save(31, xla); }
}
inline bool jj_2_33(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_33() || jj_done);
{ jj_save(32, xla); }
}
inline bool jj_2_34(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_34() || jj_done);
{ jj_save(33, xla); }
}
inline bool jj_2_35(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_35() || jj_done);
{ jj_save(34, xla); }
}
inline bool jj_2_36(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_36() || jj_done);
{ jj_save(35, xla); }
}
inline bool jj_2_37(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_37() || jj_done);
{ jj_save(36, xla); }
}
inline bool jj_2_38(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_38() || jj_done);
{ jj_save(37, xla); }
}
inline bool jj_2_39(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_39() || jj_done);
{ jj_save(38, xla); }
}
inline bool jj_2_40(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_40() || jj_done);
{ jj_save(39, xla); }
}
inline bool jj_2_41(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_41() || jj_done);
{ jj_save(40, xla); }
}
inline bool jj_2_42(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_42() || jj_done);
{ jj_save(41, xla); }
}
inline bool jj_2_43(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_43() || jj_done);
{ jj_save(42, xla); }
}
inline bool jj_2_44(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_44() || jj_done);
{ jj_save(43, xla); }
}
inline bool jj_2_45(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_45() || jj_done);
{ jj_save(44, xla); }
}
inline bool jj_2_46(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_46() || jj_done);
{ jj_save(45, xla); }
}
inline bool jj_2_47(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_47() || jj_done);
{ jj_save(46, xla); }
}
inline bool jj_2_48(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_48() || jj_done);
{ jj_save(47, xla); }
}
inline bool jj_2_49(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_49() || jj_done);
{ jj_save(48, xla); }
}
inline bool jj_2_50(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_50() || jj_done);
{ jj_save(49, xla); }
}
inline bool jj_2_51(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_51() || jj_done);
{ jj_save(50, xla); }
}
inline bool jj_2_52(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;
return (!jj_3_52() || jj_done);
{ jj_save(51, xla); }
}
inline bool jj_2_53(int xla)
{
jj_la = xla; jj_lastpos = jj_scanpos = token;
jj_done = false;