diff options
Diffstat (limited to 'vhdlparser/VhdlParser.h')
-rw-r--r-- | vhdlparser/VhdlParser.h | 1013 |
1 files changed, 247 insertions, 766 deletions
diff --git a/vhdlparser/VhdlParser.h b/vhdlparser/VhdlParser.h index 89dfe71..a9f14d1 100644 --- a/vhdlparser/VhdlParser.h +++ b/vhdlparser/VhdlParser.h @@ -4,9 +4,7 @@ #include "CharStream.h" #include "Token.h" #include "TokenManager.h" -#include "VhdlParserTokenManager.h" #include "vhdljjparser.h" - #include "VhdlParserConstants.h" #include "ErrorHandler.h" namespace vhdl { @@ -17,566 +15,288 @@ namespace parser { JJCalls* next; Token* first; ~JJCalls() { if (next) delete next; } - JJCalls() { next = NULL; arg = 0; gen = -1; first = NULL; } + JJCalls() { next = nullptr; arg = 0; gen = -1; first = nullptr; } }; class VhdlParser { - public: - +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) { @@ -1533,10 +1253,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_441()) { + if (!jj_3R_441()) return false; jj_scanpos = xsp; if (jj_3R_442()) return true; - } return false; } @@ -1577,16 +1296,13 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_scan_token(116)) { + if (!jj_scan_token(116)) return false; jj_scanpos = xsp; - if (jj_scan_token(100)) { + if (!jj_scan_token(100)) return false; jj_scanpos = xsp; - if (jj_scan_token(31)) { + if (!jj_scan_token(31)) return false; jj_scanpos = xsp; if (jj_scan_token(101)) return true; - } - } - } return false; } @@ -1692,22 +1408,17 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3_39()) { + if (!jj_3_39()) return false; jj_scanpos = xsp; - if (jj_3R_555()) { + if (!jj_3R_555()) return false; jj_scanpos = xsp; - if (jj_3_40()) { + if (!jj_3_40()) return false; jj_scanpos = xsp; - if (jj_3_41()) { + if (!jj_3_41()) return false; jj_scanpos = xsp; - if (jj_3R_556()) { + if (!jj_3R_556()) return false; jj_scanpos = xsp; if (jj_3R_557()) return true; - } - } - } - } - } return false; } @@ -1760,13 +1471,11 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_412()) { + if (!jj_3R_412()) return false; jj_scanpos = xsp; - if (jj_3R_413()) { + if (!jj_3R_413()) return false; jj_scanpos = xsp; if (jj_3R_414()) return true; - } - } return false; } @@ -1803,13 +1512,11 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_325()) { + if (!jj_3R_325()) return false; jj_scanpos = xsp; - if (jj_3R_326()) { + if (!jj_3R_326()) return false; jj_scanpos = xsp; if (jj_3R_327()) return true; - } - } return false; } @@ -1836,10 +1543,9 @@ void parseInline(); if (jj_scan_token(IS_T)) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_695()) { + if (!jj_3R_695()) return false; jj_scanpos = xsp; if (jj_scan_token(145)) return true; - } return false; } @@ -1871,10 +1577,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_620()) { + if (!jj_3R_620()) return false; jj_scanpos = xsp; if (jj_3R_621()) return true; - } return false; } @@ -2018,10 +1723,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_163()) { + if (!jj_3R_163()) return false; jj_scanpos = xsp; if (jj_3R_164()) return true; - } return false; } @@ -2041,10 +1745,9 @@ void parseInline(); if (jj_3R_85()) return true; Token * xsp; xsp = jj_scanpos; - if (jj_scan_token(134)) { + if (!jj_scan_token(134)) return false; jj_scanpos = xsp; if (jj_scan_token(137)) return true; - } return false; } @@ -2110,10 +1813,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_scan_token(84)) { + if (!jj_scan_token(84)) return false; jj_scanpos = xsp; if (jj_scan_token(52)) return true; - } return false; } @@ -2181,10 +1883,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_606()) { + if (!jj_3R_606()) return false; jj_scanpos = xsp; if (jj_3R_607()) return true; - } return false; } @@ -2225,10 +1926,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_193()) { + if (!jj_3R_193()) return false; jj_scanpos = xsp; if (jj_3R_194()) return true; - } return false; } @@ -2278,10 +1978,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_scan_token(53)) { + if (!jj_scan_token(53)) return false; jj_scanpos = xsp; if (jj_scan_token(75)) return true; - } return false; } @@ -2305,10 +2004,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_320()) { + if (!jj_3R_320()) return false; jj_scanpos = xsp; if (jj_3R_321()) return true; - } return false; } @@ -2343,10 +2041,9 @@ void parseInline(); if (jj_3R_85()) return true; Token * xsp; xsp = jj_scanpos; - if (jj_scan_token(134)) { + if (!jj_scan_token(134)) return false; jj_scanpos = xsp; if (jj_scan_token(137)) return true; - } while (true) { xsp = jj_scanpos; if (jj_3R_385()) { jj_scanpos = xsp; break; } @@ -2473,10 +2170,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_685()) { + if (!jj_3R_685()) return false; jj_scanpos = xsp; if (jj_3R_686()) return true; - } return false; } @@ -2528,10 +2224,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_269()) { + if (!jj_3R_269()) return false; jj_scanpos = xsp; if (jj_3R_270()) return true; - } return false; } @@ -2657,10 +2352,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_267()) { + if (!jj_3R_267()) return false; jj_scanpos = xsp; if (jj_3R_268()) return true; - } return false; } @@ -2676,10 +2370,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_396()) { + if (!jj_3R_396()) return false; jj_scanpos = xsp; if (jj_3R_397()) return true; - } return false; } @@ -2885,10 +2578,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_608()) { + if (!jj_3R_608()) return false; jj_scanpos = xsp; if (jj_3R_609()) return true; - } return false; } @@ -2897,13 +2589,11 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_281()) { + if (!jj_3R_281()) return false; jj_scanpos = xsp; - if (jj_3R_282()) { + if (!jj_3R_282()) return false; jj_scanpos = xsp; if (jj_3R_283()) return true; - } - } return false; } @@ -2936,13 +2626,11 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_486()) { + if (!jj_3R_486()) return false; jj_scanpos = xsp; - if (jj_3R_487()) { + if (!jj_3R_487()) return false; jj_scanpos = xsp; if (jj_3R_488()) return true; - } - } return false; } @@ -3030,13 +2718,11 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_483()) { + if (!jj_3R_483()) return false; jj_scanpos = xsp; - if (jj_3R_484()) { + if (!jj_3R_484()) return false; jj_scanpos = xsp; if (jj_3R_485()) return true; - } - } return false; } @@ -3052,22 +2738,17 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_388()) { + if (!jj_3R_388()) return false; jj_scanpos = xsp; - if (jj_3R_389()) { + if (!jj_3R_389()) return false; jj_scanpos = xsp; - if (jj_3R_390()) { + if (!jj_3R_390()) return false; jj_scanpos = xsp; - if (jj_3R_391()) { + if (!jj_3R_391()) return false; jj_scanpos = xsp; - if (jj_3R_392()) { + if (!jj_3R_392()) return false; jj_scanpos = xsp; if (jj_3R_393()) return true; - } - } - } - } - } return false; } @@ -3273,10 +2954,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_207()) { + if (!jj_3R_207()) return false; jj_scanpos = xsp; if (jj_3R_208()) return true; - } return false; } @@ -3311,10 +2991,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_693()) { + if (!jj_3R_693()) return false; jj_scanpos = xsp; if (jj_3R_694()) return true; - } return false; } @@ -3417,13 +3096,11 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_582()) { + if (!jj_3R_582()) return false; jj_scanpos = xsp; - if (jj_3R_583()) { + if (!jj_3R_583()) return false; jj_scanpos = xsp; if (jj_3R_584()) return true; - } - } return false; } @@ -3586,13 +3263,11 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_717()) { + if (!jj_3R_717()) return false; jj_scanpos = xsp; - if (jj_3R_718()) { + if (!jj_3R_718()) return false; jj_scanpos = xsp; if (jj_3R_719()) return true; - } - } return false; } @@ -3887,55 +3562,39 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_585()) { + if (!jj_3R_585()) return false; jj_scanpos = xsp; - if (jj_3R_586()) { + if (!jj_3R_586()) return false; jj_scanpos = xsp; - if (jj_3R_587()) { + if (!jj_3R_587()) return false; jj_scanpos = xsp; - if (jj_3R_588()) { + if (!jj_3R_588()) return false; jj_scanpos = xsp; - if (jj_3R_589()) { + if (!jj_3R_589()) return false; jj_scanpos = xsp; - if (jj_3R_590()) { + if (!jj_3R_590()) return false; jj_scanpos = xsp; - if (jj_3R_591()) { + if (!jj_3R_591()) return false; jj_scanpos = xsp; - if (jj_3R_592()) { + if (!jj_3R_592()) return false; jj_scanpos = xsp; - if (jj_3R_593()) { + if (!jj_3R_593()) return false; jj_scanpos = xsp; - if (jj_3R_594()) { + if (!jj_3R_594()) return false; jj_scanpos = xsp; - if (jj_3R_595()) { + if (!jj_3R_595()) return false; jj_scanpos = xsp; - if (jj_3R_596()) { + if (!jj_3R_596()) return false; jj_scanpos = xsp; - if (jj_3R_597()) { + if (!jj_3R_597()) return false; jj_scanpos = xsp; - if (jj_3R_598()) { + if (!jj_3R_598()) return false; jj_scanpos = xsp; - if (jj_3R_599()) { + if (!jj_3R_599()) return false; jj_scanpos = xsp; - if (jj_3R_600()) { + if (!jj_3R_600()) return false; jj_scanpos = xsp; if (jj_3R_601()) return true; - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } return false; } @@ -3951,43 +3610,31 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_705()) { + if (!jj_3R_705()) return false; jj_scanpos = xsp; - if (jj_3R_706()) { + if (!jj_3R_706()) return false; jj_scanpos = xsp; - if (jj_3R_707()) { + if (!jj_3R_707()) return false; jj_scanpos = xsp; - if (jj_3R_708()) { + if (!jj_3R_708()) return false; jj_scanpos = xsp; - if (jj_3R_709()) { + if (!jj_3R_709()) return false; jj_scanpos = xsp; - if (jj_3R_710()) { + if (!jj_3R_710()) return false; jj_scanpos = xsp; - if (jj_3R_711()) { + if (!jj_3R_711()) return false; jj_scanpos = xsp; - if (jj_3R_712()) { + if (!jj_3R_712()) return false; jj_scanpos = xsp; - if (jj_3R_713()) { + if (!jj_3R_713()) return false; jj_scanpos = xsp; - if (jj_3R_714()) { + if (!jj_3R_714()) return false; jj_scanpos = xsp; - if (jj_3R_715()) { + if (!jj_3R_715()) return false; jj_scanpos = xsp; - if (jj_3_105()) { + if (!jj_3_105()) return false; jj_scanpos = xsp; if (jj_3R_716()) return true; - } - } - } - } - } - } - } - } - } - } - } - } return false; } @@ -4029,13 +3676,11 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_561()) { + if (!jj_3R_561()) return false; jj_scanpos = xsp; - if (jj_3R_562()) { + if (!jj_3R_562()) return false; jj_scanpos = xsp; if (jj_3R_563()) return true; - } - } return false; } @@ -4156,10 +3801,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_159()) { + if (!jj_3R_159()) return false; jj_scanpos = xsp; if (jj_3R_160()) return true; - } return false; } @@ -4168,10 +3812,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_405()) { + if (!jj_3R_405()) return false; jj_scanpos = xsp; if (jj_3R_406()) return true; - } return false; } @@ -4252,10 +3895,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_237()) { + if (!jj_3R_237()) return false; jj_scanpos = xsp; if (jj_3R_238()) return true; - } return false; } @@ -4293,10 +3935,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_567()) { + if (!jj_3R_567()) return false; jj_scanpos = xsp; if (jj_3R_568()) return true; - } return false; } @@ -4355,10 +3996,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_493()) { + if (!jj_3R_493()) return false; jj_scanpos = xsp; if (jj_3R_494()) return true; - } return false; } @@ -4396,10 +4036,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_438()) { + if (!jj_3R_438()) return false; jj_scanpos = xsp; if (jj_3R_439()) return true; - } return false; } @@ -4435,10 +4074,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_275()) { + if (!jj_3R_275()) return false; jj_scanpos = xsp; if (jj_3R_276()) return true; - } return false; } @@ -4565,22 +4203,17 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_632()) { + if (!jj_3R_632()) return false; jj_scanpos = xsp; - if (jj_3R_633()) { + if (!jj_3R_633()) return false; jj_scanpos = xsp; - if (jj_3R_634()) { + if (!jj_3R_634()) return false; jj_scanpos = xsp; - if (jj_3R_635()) { + if (!jj_3R_635()) return false; jj_scanpos = xsp; - if (jj_3_102()) { + if (!jj_3_102()) return false; jj_scanpos = xsp; if (jj_3R_636()) return true; - } - } - } - } - } return false; } @@ -4627,10 +4260,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_565()) { + if (!jj_3R_565()) return false; jj_scanpos = xsp; if (jj_3R_566()) return true; - } return false; } @@ -4646,10 +4278,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3_101()) { + if (!jj_3_101()) return false; jj_scanpos = xsp; if (jj_3R_457()) return true; - } return false; } @@ -4710,10 +4341,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_245()) { + if (!jj_3R_245()) return false; jj_scanpos = xsp; if (jj_3R_246()) return true; - } return false; } @@ -4796,16 +4426,13 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_214()) { + if (!jj_3R_214()) return false; jj_scanpos = xsp; - if (jj_3R_215()) { + if (!jj_3R_215()) return false; jj_scanpos = xsp; - if (jj_3R_216()) { + if (!jj_3R_216()) return false; jj_scanpos = xsp; if (jj_3R_217()) return true; - } - } - } return false; } @@ -4973,10 +4600,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_scan_token(84)) { + if (!jj_scan_token(84)) return false; jj_scanpos = xsp; if (jj_scan_token(52)) return true; - } return false; } @@ -5099,10 +4725,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_431()) { + if (!jj_3R_431()) return false; jj_scanpos = xsp; if (jj_3R_432()) return true; - } return false; } @@ -5134,31 +4759,23 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_496()) { + if (!jj_3R_496()) return false; jj_scanpos = xsp; - if (jj_3R_497()) { + if (!jj_3R_497()) return false; jj_scanpos = xsp; - if (jj_3R_498()) { + if (!jj_3R_498()) return false; jj_scanpos = xsp; - if (jj_3R_499()) { + if (!jj_3R_499()) return false; jj_scanpos = xsp; - if (jj_3R_500()) { + if (!jj_3R_500()) return false; jj_scanpos = xsp; - if (jj_3R_501()) { + if (!jj_3R_501()) return false; jj_scanpos = xsp; - if (jj_3R_502()) { + if (!jj_3R_502()) return false; jj_scanpos = xsp; - if (jj_3R_503()) { + if (!jj_3R_503()) return false; jj_scanpos = xsp; if (jj_scan_token(189)) return true; - } - } - } - } - } - } - } - } return false; } @@ -5174,10 +4791,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_scan_token(46)) { + if (!jj_scan_token(46)) return false; jj_scanpos = xsp; if (jj_scan_token(80)) return true; - } return false; } @@ -5251,10 +4867,9 @@ void parseInline(); xsp = jj_scanpos; if (jj_scan_token(79)) jj_scanpos = xsp; xsp = jj_scanpos; - if (jj_3R_171()) { + if (!jj_3R_171()) return false; jj_scanpos = xsp; if (jj_3R_172()) return true; - } return false; } @@ -5417,10 +5032,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_677()) { + if (!jj_3R_677()) return false; jj_scanpos = xsp; if (jj_3R_678()) return true; - } return false; } @@ -5429,43 +5043,31 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_663()) { + if (!jj_3R_663()) return false; jj_scanpos = xsp; - if (jj_3R_664()) { + if (!jj_3R_664()) return false; jj_scanpos = xsp; - if (jj_3R_665()) { + if (!jj_3R_665()) return false; jj_scanpos = xsp; - if (jj_3R_666()) { + if (!jj_3R_666()) return false; jj_scanpos = xsp; - if (jj_3R_667()) { + if (!jj_3R_667()) return false; jj_scanpos = xsp; - if (jj_3R_668()) { + if (!jj_3R_668()) return false; jj_scanpos = xsp; - if (jj_3R_669()) { + if (!jj_3R_669()) return false; jj_scanpos = xsp; - if (jj_3R_670()) { + if (!jj_3R_670()) return false; jj_scanpos = xsp; - if (jj_3R_671()) { + if (!jj_3R_671()) return false; jj_scanpos = xsp; - if (jj_3R_672()) { + if (!jj_3R_672()) return false; jj_scanpos = xsp; - if (jj_3R_673()) { + if (!jj_3R_673()) return false; jj_scanpos = xsp; - if (jj_3_94()) { + if (!jj_3_94()) return false; jj_scanpos = xsp; if (jj_3R_674()) return true; - } - } - } - } - } - } - } - } - } - } - } - } return false; } @@ -5510,10 +5112,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_433()) { + if (!jj_3R_433()) return false; jj_scanpos = xsp; if (jj_scan_token(137)) return true; - } return false; } @@ -5560,10 +5161,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_199()) { + if (!jj_3R_199()) return false; jj_scanpos = xsp; if (jj_3R_200()) return true; - } return false; } @@ -5797,16 +5397,13 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_333()) { + if (!jj_3R_333()) return false; jj_scanpos = xsp; - if (jj_3R_334()) { + if (!jj_3R_334()) return false; jj_scanpos = xsp; - if (jj_3R_335()) { + if (!jj_3R_335()) return false; jj_scanpos = xsp; if (jj_3R_336()) return true; - } - } - } return false; } @@ -5905,13 +5502,11 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_602()) { + if (!jj_3R_602()) return false; jj_scanpos = xsp; - if (jj_3R_603()) { + if (!jj_3R_603()) return false; jj_scanpos = xsp; if (jj_3R_604()) return true; - } - } return false; } @@ -5958,10 +5553,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_577()) { + if (!jj_3R_577()) return false; jj_scanpos = xsp; if (jj_3R_578()) return true; - } return false; } @@ -6118,13 +5712,11 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_435()) { + if (!jj_3R_435()) return false; jj_scanpos = xsp; - if (jj_3R_436()) { + if (!jj_3R_436()) return false; jj_scanpos = xsp; if (jj_3R_437()) return true; - } - } return false; } @@ -6187,10 +5779,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_400()) { + if (!jj_3R_400()) return false; jj_scanpos = xsp; if (jj_3R_401()) return true; - } return false; } @@ -6297,22 +5888,17 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_546()) { + if (!jj_3R_546()) return false; jj_scanpos = xsp; - if (jj_3R_547()) { + if (!jj_3R_547()) return false; jj_scanpos = xsp; - if (jj_3R_548()) { + if (!jj_3R_548()) return false; jj_scanpos = xsp; - if (jj_3R_549()) { + if (!jj_3R_549()) return false; jj_scanpos = xsp; - if (jj_3R_550()) { + if (!jj_3R_550()) return false; jj_scanpos = xsp; if (jj_3R_551()) return true; - } - } - } - } - } return false; } @@ -6525,52 +6111,37 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_285()) { + if (!jj_3R_285()) return false; jj_scanpos = xsp; - if (jj_3R_286()) { + if (!jj_3R_286()) return false; jj_scanpos = xsp; - if (jj_3R_287()) { + if (!jj_3R_287()) return false; jj_scanpos = xsp; - if (jj_3R_288()) { + if (!jj_3R_288()) return false; jj_scanpos = xsp; - if (jj_3R_289()) { + if (!jj_3R_289()) return false; jj_scanpos = xsp; - if (jj_3R_290()) { + if (!jj_3R_290()) return false; jj_scanpos = xsp; - if (jj_3R_291()) { + if (!jj_3R_291()) return false; jj_scanpos = xsp; - if (jj_3R_292()) { + if (!jj_3R_292()) return false; jj_scanpos = xsp; - if (jj_3R_293()) { + if (!jj_3R_293()) return false; jj_scanpos = xsp; - if (jj_3R_294()) { + if (!jj_3R_294()) return false; jj_scanpos = xsp; - if (jj_3R_295()) { + if (!jj_3R_295()) return false; jj_scanpos = xsp; - if (jj_3R_296()) { + if (!jj_3R_296()) return false; jj_scanpos = xsp; - if (jj_3R_297()) { + if (!jj_3R_297()) return false; jj_scanpos = xsp; - if (jj_3R_298()) { + if (!jj_3R_298()) return false; jj_scanpos = xsp; - if (jj_3_8()) { + if (!jj_3_8()) return false; jj_scanpos = xsp; if (jj_3R_299()) return true; - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } return false; } @@ -6670,43 +6241,31 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_242()) { + if (!jj_3R_242()) return false; jj_scanpos = xsp; - if (jj_3_77()) { + if (!jj_3_77()) return false; jj_scanpos = xsp; - if (jj_3_78()) { + if (!jj_3_78()) return false; jj_scanpos = xsp; - if (jj_3_79()) { + if (!jj_3_79()) return false; jj_scanpos = xsp; - if (jj_3R_243()) { + if (!jj_3R_243()) return false; jj_scanpos = xsp; - if (jj_3_81()) { + if (!jj_3_81()) return false; jj_scanpos = xsp; - if (jj_3_82()) { + if (!jj_3_82()) return false; jj_scanpos = xsp; - if (jj_3_83()) { + if (!jj_3_83()) return false; jj_scanpos = xsp; - if (jj_3_84()) { + if (!jj_3_84()) return false; jj_scanpos = xsp; - if (jj_3_85()) { + if (!jj_3_85()) return false; jj_scanpos = xsp; - if (jj_3_86()) { + if (!jj_3_86()) return false; jj_scanpos = xsp; - if (jj_3_87()) { + if (!jj_3_87()) return false; jj_scanpos = xsp; if (jj_3R_244()) return true; - } - } - } - } - } - } - } - } - } - } - } - } return false; } @@ -6952,10 +6511,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_675()) { + if (!jj_3R_675()) return false; jj_scanpos = xsp; if (jj_3R_676()) return true; - } return false; } @@ -6964,10 +6522,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_353()) { + if (!jj_3R_353()) return false; jj_scanpos = xsp; if (jj_3R_354()) return true; - } return false; } @@ -7160,22 +6717,17 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_477()) { + if (!jj_3R_477()) return false; jj_scanpos = xsp; - if (jj_3R_478()) { + if (!jj_3R_478()) return false; jj_scanpos = xsp; - if (jj_3R_479()) { + if (!jj_3R_479()) return false; jj_scanpos = xsp; - if (jj_3R_480()) { + if (!jj_3R_480()) return false; jj_scanpos = xsp; - if (jj_3R_481()) { + if (!jj_3R_481()) return false; jj_scanpos = xsp; if (jj_3R_482()) return true; - } - } - } - } - } return false; } @@ -7275,10 +6827,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_697()) { + if (!jj_3R_697()) return false; jj_scanpos = xsp; if (jj_3R_698()) return true; - } return false; } @@ -7318,10 +6869,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_181()) { + if (!jj_3R_181()) return false; jj_scanpos = xsp; if (jj_3R_182()) return true; - } return false; } @@ -7355,10 +6905,9 @@ void parseInline(); if (jj_scan_token(APOSTROPHE_T)) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_226()) { + if (!jj_3R_226()) return false; jj_scanpos = xsp; if (jj_3R_227()) return true; - } return false; } @@ -7415,10 +6964,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3_4()) { + if (!jj_3_4()) return false; jj_scanpos = xsp; if (jj_3R_575()) return true; - } return false; } @@ -7456,13 +7004,11 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_534()) { + if (!jj_3R_534()) return false; jj_scanpos = xsp; - if (jj_3R_535()) { + if (!jj_3R_535()) return false; jj_scanpos = xsp; if (jj_3R_536()) return true; - } - } return false; } @@ -7472,10 +7018,9 @@ void parseInline(); if (jj_scan_token(LPAREN_T)) return true; Token * xsp; xsp = jj_scanpos; - if (jj_scan_token(15)) { + if (!jj_scan_token(15)) return false; jj_scanpos = xsp; if (jj_3R_339()) return true; - } if (jj_scan_token(RPAREN_T)) return true; return false; } @@ -7578,13 +7123,11 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_271()) { + if (!jj_3R_271()) return false; jj_scanpos = xsp; - if (jj_3R_272()) { + if (!jj_3R_272()) return false; jj_scanpos = xsp; if (jj_3R_273()) return true; - } - } return false; } @@ -7663,13 +7206,11 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_490()) { + if (!jj_3R_490()) return false; jj_scanpos = xsp; - if (jj_3R_491()) { + if (!jj_3R_491()) return false; jj_scanpos = xsp; if (jj_3R_492()) return true; - } - } return false; } @@ -7755,40 +7296,29 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_509()) { + if (!jj_3R_509()) return false; jj_scanpos = xsp; - if (jj_3R_510()) { + if (!jj_3R_510()) return false; jj_scanpos = xsp; - if (jj_3R_511()) { + if (!jj_3R_511()) return false; jj_scanpos = xsp; - if (jj_3R_512()) { + if (!jj_3R_512()) return false; jj_scanpos = xsp; - if (jj_3R_513()) { + if (!jj_3R_513()) return false; jj_scanpos = xsp; - if (jj_3R_514()) { + if (!jj_3R_514()) return false; jj_scanpos = xsp; - if (jj_3R_515()) { + if (!jj_3R_515()) return false; jj_scanpos = xsp; - if (jj_3_69()) { + if (!jj_3_69()) return false; jj_scanpos = xsp; - if (jj_3R_516()) { + if (!jj_3R_516()) return false; jj_scanpos = xsp; - if (jj_3R_517()) { + if (!jj_3R_517()) return false; jj_scanpos = xsp; - if (jj_3_70()) { + if (!jj_3_70()) return false; jj_scanpos = xsp; if (jj_3R_518()) return true; - } - } - } - } - } - } - } - } - } - } - } return false; } @@ -7853,13 +7383,11 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_151()) { + if (!jj_3R_151()) return false; jj_scanpos = xsp; - if (jj_3R_152()) { + if (!jj_3R_152()) return false; jj_scanpos = xsp; if (jj_3R_153()) return true; - } - } return false; } @@ -7921,13 +7449,11 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_222()) { + if (!jj_3R_222()) return false; jj_scanpos = xsp; - if (jj_3R_223()) { + if (!jj_3R_223()) return false; jj_scanpos = xsp; if (jj_3R_224()) return true; - } - } return false; } @@ -7964,19 +7490,15 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_201()) { + if (!jj_3R_201()) return false; jj_scanpos = xsp; - if (jj_3R_202()) { + if (!jj_3R_202()) return false; jj_scanpos = xsp; - if (jj_3R_203()) { + if (!jj_3R_203()) return false; jj_scanpos = xsp; - if (jj_3_67()) { + if (!jj_3_67()) return false; jj_scanpos = xsp; if (jj_3R_204()) return true; - } - } - } - } return false; } @@ -8087,28 +7609,21 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_449()) { + if (!jj_3R_449()) return false; jj_scanpos = xsp; - if (jj_3R_450()) { + if (!jj_3R_450()) return false; jj_scanpos = xsp; - if (jj_3R_451()) { + if (!jj_3R_451()) return false; jj_scanpos = xsp; - if (jj_3R_452()) { + if (!jj_3R_452()) return false; jj_scanpos = xsp; - if (jj_3R_453()) { + if (!jj_3R_453()) return false; jj_scanpos = xsp; - if (jj_3R_454()) { + if (!jj_3R_454()) return false; jj_scanpos = xsp; - if (jj_3R_455()) { + if (!jj_3R_455()) return false; jj_scanpos = xsp; if (jj_3R_456()) return true; - } - } - } - } - } - } - } return false; } @@ -8329,22 +7844,17 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_641()) { + if (!jj_3R_641()) return false; jj_scanpos = xsp; - if (jj_3R_642()) { + if (!jj_3R_642()) return false; jj_scanpos = xsp; - if (jj_3R_643()) { + if (!jj_3R_643()) return false; jj_scanpos = xsp; - if (jj_3R_644()) { + if (!jj_3R_644()) return false; jj_scanpos = xsp; - if (jj_3R_645()) { + if (!jj_3R_645()) return false; jj_scanpos = xsp; if (jj_3R_646()) return true; - } - } - } - } - } return false; } @@ -8375,10 +7885,9 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_205()) { + if (!jj_3R_205()) return false; jj_scanpos = xsp; if (jj_3R_206()) return true; - } return false; } @@ -8578,16 +8087,13 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_210()) { + if (!jj_3R_210()) return false; jj_scanpos = xsp; - if (jj_3R_211()) { + if (!jj_3R_211()) return false; jj_scanpos = xsp; - if (jj_3R_212()) { + if (!jj_3R_212()) return false; jj_scanpos = xsp; if (jj_3R_213()) return true; - } - } - } return false; } @@ -8636,13 +8142,11 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_147()) { + if (!jj_3R_147()) return false; jj_scanpos = xsp; - if (jj_3R_148()) { + if (!jj_3R_148()) return false; jj_scanpos = xsp; if (jj_3R_149()) return true; - } - } xsp = jj_scanpos; if (jj_3R_150()) jj_scanpos = xsp; return false; @@ -8674,16 +8178,13 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_277()) { + if (!jj_3R_277()) return false; jj_scanpos = xsp; - if (jj_3R_278()) { + if (!jj_3R_278()) return false; jj_scanpos = xsp; - if (jj_3R_279()) { + if (!jj_3R_279()) return false; jj_scanpos = xsp; if (jj_3R_280()) return true; - } - } - } return false; } @@ -8734,19 +8235,15 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_426()) { + if (!jj_3R_426()) return false; jj_scanpos = xsp; - if (jj_3R_427()) { + if (!jj_3R_427()) return false; jj_scanpos = xsp; - if (jj_3R_428()) { + if (!jj_3R_428()) return false; jj_scanpos = xsp; - if (jj_3R_429()) { + if (!jj_3R_429()) return false; jj_scanpos = xsp; if (jj_3R_430()) return true; - } - } - } - } return false; } @@ -8851,30 +8348,32 @@ void parseInline(); if (jj_done) return true; Token * xsp; xsp = jj_scanpos; - if (jj_3R_228()) { + if (!jj_3R_228()) return false; jj_scanpos = xsp; - if (jj_3R_229()) { + if (!jj_3R_229()) return false; jj_scanpos = xsp; - if (jj_3R_230()) { + if (!jj_3R_230()) return false; jj_scanpos = xsp; - if (jj_3R_231()) { + if (!jj_3R_231()) return false; jj_scanpos = xsp; if (jj_3R_232()) return true; - } - } - } - } return false; } public: - TokenManager *token_source; - CharStream *jj_input_stream; + void setErrorHandler(ErrorHandler *eh) { + if (errorHandler) delete errorHandler; + errorHandler = eh; + } + + TokenManager *token_source = nullptr; + CharStream *jj_input_stream = nullptr; /** Current token. */ - Token *token; + Token *token = nullptr; /** Next token. */ - Token *jj_nt; + Token *jj_nt = nullptr; + private: int jj_ntk; JJCalls jj_2_rtns[116]; @@ -8887,57 +8386,39 @@ private: bool jj_semLA; int jj_gen; int jj_la1[294]; - ErrorHandler *errorHandler; - bool errorHandlerCreated; + ErrorHandler *errorHandler = nullptr; + protected: bool hasError; -public: - void setErrorHandler(ErrorHandler *eh) { - if (errorHandlerCreated) delete errorHandler; - errorHandler = eh; - errorHandlerCreated = false; - } + Token *head; public: - - VhdlParser(TokenManager *tm); + VhdlParser(TokenManager *tokenManager); virtual ~VhdlParser(); - -void ReInit(TokenManager *tm); - +void ReInit(TokenManager* tokenManager); void clear(); - Token * jj_consume_token(int kind); - bool jj_scan_token(int kind); - Token * getNextToken(); - Token * getToken(int index); - int jj_ntk_f(); private: int jj_kind; int **jj_expentries; int *jj_expentry; - void jj_add_error_token(int kind, int pos); protected: /** Generate ParseException. */ - virtual void parseError(); private: - int trace_indent; - bool trace_enabled; + int indent; // trace indentation + bool trace = false; // trace enabled if true public: - + bool trace_enabled(); void enable_tracing(); - void disable_tracing(); - void jj_rescan_token(); - void jj_save(int index, int xla); typedef unsigned long long uint64; |