Class: SystemRDL::Parser::GeneratedParser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/systemrdl/parser/generated_parser.rb

Direct Known Subclasses

Parser

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",
"ABSTRACT",
"ACCESSTYPE",
"ADDRESSINGTYPE",
"ADDRMAP",
"ALIAS",
"ALL",
"BIT",
"BOOLEAN",
"BOTHEDGE",
"COMPACT",
"COMPONENT",
"COMPONENTWIDTH",
"CONSTRAINT",
"DEFAULT",
"ENCODE",
"ENUM",
"EXTERNAL",
"FALSE",
"FIELD",
"FULLALIGN",
"HW",
"INSIDE",
"INTERNAL",
"LEVEL",
"LONGINT",
"MEM",
"NA",
"NEGEDGE",
"NONSTICKY",
"NUMBER",
"ONREADTYPE",
"ONWRITETYPE",
"POSEDGE",
"PROPERTY",
"R",
"RCLR",
"REF",
"REG",
"REGALIGN",
"REGFILE",
"RSET",
"RUSER",
"RW",
"RW1",
"SIGNAL",
"STRING",
"STRUCT",
"SW",
"THIS",
"TRUE",
"TYPE",
"UNSIGNED",
"W",
"W1",
"WCLR",
"WOCLR",
"WOSET",
"WOT",
"WR",
"WSET",
"WUSER",
"WZC",
"WZS",
"WZT",
"VERILOG_NUMBER",
"SIMPLE_ID",
"EOS",
"__TEST_PROPERTY_ASSIGNMENT__",
"__TEST_CONSTANT_EXPRESSION__",
"UOP",
"\"**\"",
"\"*\"",
"\"/\"",
"\"%\"",
"\"+\"",
"\"-\"",
"\"<<\"",
"\">>\"",
"\"<\"",
"\"<=\"",
"\">\"",
"\">=\"",
"\"==\"",
"\"!=\"",
"\"&\"",
"\"^\"",
"\"~^\"",
"\"^~\"",
"\"|\"",
"\"&&\"",
"\"||\"",
"\"?\"",
"\":\"",
"\"{\"",
"\"}\"",
"\";\"",
"\",\"",
"\"-temp-group\"",
"\"=\"",
"\"@\"",
"\"+=\"",
"\"%=\"",
"\"->\"",
"\".\"",
"\"[\"",
"\"]\"",
"\"!\"",
"\"~\"",
"\"~&\"",
"\"~|\"",
"\"(\"",
"\")\"",
"\"'\"",
"$start",
"root",
"description",
"property_assignment",
"constant_expression",
"\"-many1@description\"",
"component_def",
"component_type",
"id",
"component_body_elem",
"component_inst_type",
"component_insts",
"\"-many@component_body_elem\"",
"explicit_component_inst",
"component_inst",
"\"-group@\\\",\\\"-component_inst\"",
"\"-many@-group@\\\",\\\"-component_inst\"",
"component_inst_array_or_range",
"reset_value",
"address_assignment",
"address_stride",
"address_alignment",
"\"-option@component_inst_array_or_range\"",
"\"-option@reset_value\"",
"\"-option@address_assignment\"",
"\"-option@address_stride\"",
"\"-option@address_alignment\"",
"array",
"range",
"prop_mod",
"prop_assignment_lhs",
"prop_assignment_rhs",
"encode",
"prop_ref",
"encode_ref",
"prop_keyword",
"precedencetype_literal",
"instance_ref",
"instance_ref_element",
"\"-group@\\\".\\\"-instance_ref_element\"",
"\"-many@-group@\\\".\\\"-instance_ref_element\"",
"instance_or_prop_ref",
"constant_concatenation",
"\"-group@\\\"[\\\"-constant_expression-\\\"]\\\"\"",
"\"-many1@-group@\\\"[\\\"-constant_expression-\\\"]\\\"\"",
"constant_multiple_concatenation",
"\"-group@\\\",\\\"-constant_expression\"",
"\"-many@-group@\\\",\\\"-constant_expression\"",
"simple_type",
"boolean_literal",
"accesstype_literal",
"onreadtype_literal",
"onwritetype_literal",
"addressingtype_literal",
"constant_primary",
"primary_literal",
"constant_cast",
"casting_type" ]
Racc_debug_parser =
true

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



2802
2803
2804
# File 'lib/systemrdl/parser/generated_parser.rb', line 2802

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