Class: Generator

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/tecsgen/core/bnf.tab.rb,
lib/tecsgen/core/bnf-deb.tab.rb

Constant Summary collapse

Racc_arg =
[
racc_action_table,
racc_action_check,
racc_action_default,
racc_action_pointer,
racc_goto_table,
racc_goto_check,
racc_goto_default,
racc_goto_pointer,
racc_nt_base,
racc_reduce_table,
racc_token_table,
racc_shift_n,
racc_reduce_n,
racc_use_result_var ]
Racc_token_to_s_table =
[
"$end",
"error",
"TRUE",
"FALSE",
"INTEGER_CONSTANT",
"FLOATING_CONSTANT",
"OCTAL_CONSTANT",
"HEX_CONSTANT",
"CHARACTER_LITERAL",
"\"(\"",
"\")\"",
"STRING_LITERAL",
"\"[\"",
"\"]\"",
"\".\"",
"IDENTIFIER",
"\"->\"",
"SIZEOF",
"\"&\"",
"\"*\"",
"\"+\"",
"\"-\"",
"\"~\"",
"\"!\"",
"\"/\"",
"\"%\"",
"\"<<\"",
"\">>\"",
"\"<\"",
"\">\"",
"\"<=\"",
"\">=\"",
"\"==\"",
"\"!=\"",
"\"^\"",
"\"|\"",
"\"&&\"",
"\"||\"",
"\"?\"",
"\":\"",
"\";\"",
"\",\"",
"\"=\"",
"VOID",
"FLOAT32_T",
"DOUBLE64_T",
"TYPE_NAME",
"BOOL_T",
"FLOAT",
"DOUBLE",
"DESCRIPTOR",
"CHAR_T",
"SCHAR_T",
"UCHAR_T",
"CHAR",
"SHORT",
"INT",
"LONG",
"INT8_T",
"INT16_T",
"INT32_T",
"INT64_T",
"INT128_T",
"UINT8_T",
"UINT16_T",
"UINT32_T",
"UINT64_T",
"UINT128_T",
"SIGNED",
"UNSIGNED",
"STRUCT",
"\"{\"",
"\"}\"",
"STRING",
"SIZE_IS",
"COUNT_IS",
"ENUM",
"ENUM8",
"ENUM16",
"ENUM32",
"ENUM64",
"ENUM128",
"CONST",
"VOLATILE",
"\"...\"",
"IN",
"OUT",
"INOUT",
"SEND",
"RECEIVE",
"NULLABLE",
"C_EXP",
"ALLOCATOR",
"CALLBACK",
"CONTEXT",
"DEVIATE",
"ID",
"PROTOTYPE",
"RESTRICT",
"SINGLETON",
"IDX_IS_ID",
"ACTIVE",
"GENERATE",
"IMPORT_C",
"IMPORT",
"AB_STRING_LITERAL",
"TYPEDEF",
"NAMESPACE",
"\"::\"",
"SIGNATURE",
"ONEWAY",
"CELLTYPE",
"INLINE",
"OPTIONAL",
"REF_DESC",
"DYNAMIC",
"OMIT",
"CALL",
"ENTRY",
"ATTRIBUTE",
"CHOICE",
"VAR",
"REQUIRE",
"FACTORY",
"CTFACTORY",
"CELL",
"THROUGH",
"COMPOSITE",
"\"=>\"",
"REGION",
"IN_THROUGH",
"OUT_THROUGH",
"TO_THROUGH",
"NODE",
"LINKUNIT",
"DOMAIN",
"CLASS",
"__LOCATION_INFORMATION__",
"__CELL__",
"__JOIN__",
"TOOL_INFO",
"$start",
"all",
"component_description",
"primary_expression",
"namespace_identifier",
"string_literal_list",
"expression",
"postfix_expression",
"unary_expression",
"unary_operator",
"cast_expression",
"type_name",
"multiplicative_expression",
"additive_expression",
"shift_expression",
"relational_expression",
"equality_expression",
"and_expression",
"exclusive_or_expression",
"inclusive_or_expression",
"logical_and_expression",
"logical_or_expression",
"conditional_expression",
"constant_expression",
"declaration",
"type_specifier_qualifier_list",
"init_declarator_list",
"declaration_specifiers",
"type_specifier",
"type_qualifier",
"init_declarator",
"declarator",
"initializer",
"struct_specifier",
"enum_specifier",
"sign_int_type",
"char_type",
"int_type",
"sign",
"struct_tag",
"struct_declaration_list",
"@1",
"@2",
"struct_declaration",
"struct_declarator_list",
"spec_L",
"pointer_specifier_list",
"spec_R",
"pointer_specifier",
"struct_declarator",
"enum_type",
"enumerator_list",
"enumerator",
"pointer",
"direct_declarator",
"parameter_type_list",
"parameter_list",
"parameter_declaration",
"parameter_specifier_list_bracket",
"parameter_specifier_list",
"parameter_specifier",
"abstract_declarator",
"direct_abstract_declarator",
"initializer_list",
"specified_statement",
"location_information",
"tool_info",
"statement",
"statement_specifier_list",
"typedef",
"const_statement",
"namespace",
"signature",
"celltype",
"cell",
"composite_celltype",
"region",
"import",
"import_C",
"generate_statement",
"statement_specifier",
"alloc_list",
"restrict_list",
"plugin_name",
"plugin_arg",
"alloc",
"restrict",
"port_name",
"region_name_list",
"declarator_list",
"typedef_specifier",
"namespace_name",
"statement_list",
"signature_name",
"function_head_list",
"function_head",
"celltype_name",
"celltype_statement_list",
"specified_celltype_statement",
"celltype_statement",
"celltype_statement_specifier_list",
"port",
"attribute",
"var",
"require",
"factory",
"celltype_statement_specifier",
"alloc_list2",
"alloc2",
"port_type",
"namespace_signature_name",
"array_size",
"attribute_declaration_list",
"attribute_declaration",
"attribute_specifier",
"choice_list",
"choice_element",
"var_declaration_list",
"var_declaration",
"var_specifier",
"factory_head",
"factory_function_list",
"factory_function",
"factory_function_name",
"arg_list",
"namespace_celltype_name",
"cell_name",
"join_list",
"@3",
"specified_join",
"reverse_join",
"join_specifier_list",
"join",
"join_specifier",
"cae_name",
"array_index",
"composite_celltype_name",
"composite_celltype_statement_list",
"specified_composite_celltype_statement",
"composite_celltype_statement",
"composite_celltype_statement_specifier_list",
"composite_port",
"composite_attribute",
"internal_cell",
"export_join",
"composite_celltype_statement_specifier",
"composite_attribute_declaration_list",
"internal_namespace_celltype_name",
"internal_cell_name",
"internal_join_list",
"@4",
"external_join",
"internal_cell_elem_name",
"export_name",
"internal_ref_cell_name",
"region_specifier_list",
"region_name",
"region_statement",
"region_specifier",
"namespace_region_name",
"region_cell",
"cell_location_join_location_list",
"cell_location",
"join_location",
"port_location_list",
"port_location",
"bar_list",
"JSON_string",
"JSON_object",
"JSON_property_list",
"JSON_value",
"JSON_number",
"JSON_array",
"JSON_array_list" ]
Racc_debug_parser =
true

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



5083
5084
5085
# File 'lib/tecsgen/core/bnf.tab.rb', line 5083

def _reduce_none(val, _values, result)
  val[0]
end