Class: TCFLOW_Cparser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/tecsflow/C_parser.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",
"IDENTIFIER",
"INTEGER_CONSTANT",
"FLOATING_CONSTANT",
"OCTAL_CONSTANT",
"HEX_CONSTANT",
"CHARACTER_LITERAL",
"\"(\"",
"\")\"",
"STRING_LITERAL",
"\"[\"",
"\"]\"",
"\".\"",
"\"->\"",
"\"++\"",
"\"--\"",
"\",\"",
"SIZEOF",
"\"&\"",
"\"*\"",
"\"+\"",
"\"-\"",
"\"~\"",
"\"!\"",
"\"/\"",
"\"%\"",
"\"<<\"",
"\">>\"",
"\"<\"",
"\">\"",
"\"<=\"",
"\">=\"",
"\"==\"",
"\"!=\"",
"\"^\"",
"\"|\"",
"\"&&\"",
"\"||\"",
"\"?\"",
"\":\"",
"\";\"",
"\"=\"",
"VOID",
"FLOAT",
"DOUBLE",
"TYPE_NAME",
"CHAR",
"SHORT",
"INT",
"LONG",
"SIGNED",
"UNSIGNED",
"__INT8",
"__INT16",
"__INT32",
"__INT64",
"__BOOL",
"\"{\"",
"\"}\"",
"STRUCT",
"UNION",
"ENUM",
"CONST",
"VOLATILE",
"__CDECL",
"__STDCALL",
"__FASTCALL",
"\"...\"",
"TYPEDEF",
"IF",
"ELSE",
"WHILE",
"DO",
"FOR",
"SWITCH",
"CASE",
"DEFAULT",
"GOTO",
"CONTINUE",
"BREAK",
"RETURN",
"\"+=\"",
"\"-=\"",
"\"*=\"",
"\"/=\"",
"\"%=\"",
"\"<<=\"",
"\">>=\"",
"\"&=\"",
"\"|=\"",
"\"^=\"",
"__INLINE__",
"__FORCEINLINE",
"INLINE",
"EXTERN",
"STATIC",
"AUTO",
"REGISTER",
"__DECLSPEC",
"_ASM",
"$start",
"all",
"C_parser",
"primary_expression",
"string_literal_list",
"expression",
"postfix_expression",
"argument_list",
"assignment_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",
"declaration_specifiers",
"init_declarator_list",
"storage_class",
"type_specifier",
"type_qualifier",
"init_declarator",
"declarator",
"initializer",
"struct_or_union_specifier",
"enum_specifier",
"struct_or_union",
"struct_tag",
"struct_declaration_list",
"struct_declaration",
"type_specifier_qualifier_list",
"struct_declarator_list",
"struct_declarator",
"enum_type",
"enumerator_list",
"enumerator",
"pointer",
"direct_declarator",
"parameter_type_list",
"identifier_list",
"pointer0",
"call_convention",
"parameter_list",
"parameter_declaration",
"abstract_declarator",
"direct_abstract_declarator",
"initializer_list",
"statement",
"typedef",
"func_def",
"declarator_list",
"kr_param_list",
"compoundstatement",
"kr_param",
"@1",
"@2",
"infunc_statement_list",
"infunc_statement",
"ifstatement",
"whilestatement",
"dowhilestatement",
"forstatement",
"switchstatement",
"labelstatement",
"gotostatement",
"expressionstatement",
"asm_statement",
"expression_or_empty",
"assignment_operator" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



2382
2383
2384
# File 'lib/tecsflow/C_parser.tab.rb', line 2382

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