Class: CType::Parser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/caphir/ctype.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',
'"."',
'"->"',
'UADDRS',
'UDEREF',
'UPLUS',
'UMINUS',
'"!"',
'"~"',
'"sizeof"',
'"*"',
'"/"',
'"%"',
'"+"',
'"-"',
'"<"',
'"<="',
'">"',
'">="',
'"=="',
'"!="',
'"&"',
'"^"',
'"|"',
'"&&"',
'"||"',
'POINTER',
'CONSTANT',
'CHARACTER',
'STRING',
'TYPEDEF_NAME',
'IDENTIFIER',
'"{"',
'";"',
'"inline"',
'"typedef"',
'"extern"',
'"static"',
'"auto"',
'"register"',
'"void"',
'"char"',
'"short"',
'"int"',
'"long"',
'"float"',
'"double"',
'"signed"',
'"unsigned"',
'"_Bool"',
'"_Complex"',
'"_Imaginary"',
'"struct"',
'"union"',
'"const"',
'"volatile"',
'"restrict"',
'"("',
'")"',
'"<<"',
'">>"',
'"?"',
'":"',
'","',
'"="',
'"}"',
'"+="',
'"-="',
'"*="',
'"/="',
'"%="',
'"&="',
'"^="',
'"|="',
'"<<="',
'">>="',
'"["',
'"]"',
'"enum"',
'"..."',
'$start',
'target',
'statement_target',
'empty_target',
'declaration',
'function_definition',
'storage_class_specifier',
'primitive_type',
'struct_or_union',
'type_qualifier',
'cstring',
'identifier',
'typedef_identifier',
'constant_exp',
'expression',
'unary_expression',
'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',
'function_header',
'declaration_specifiers',
'declarator',
'declaration_list',
'init_declarator_list',
'declaration_attribute',
'argument_expression_list',
'init_declarator',
'initializer',
'assignment_expression',
'initializer_list',
'assignment_operator',
'post_declaration_specifiers',
'type_specifier',
'primitive_type_specifier',
'struct_or_union_specifier',
'enum_specifier',
'struct_or_union_or_enum_name',
'struct_declaration_list',
'struct_declaration',
'struct_specifiers',
'struct_declarator_list',
'specifier_qualifier_list',
'struct_declarator',
'declarator_sequence',
'pointer',
'direct_declarator',
'parameter_type_list',
'identifier_list',
'enumerator_list',
'enumerator_list_pre',
'enumerator',
'type_qualifier_list',
'parameter_list',
'parameter_declaration',
'abstract_declarator',
'identifier_sequence',
'abstract_declarator_sequence',
'direct_abstract_declarator']
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object


2634
2635
2636
# File 'lib/caphir/ctype.rb', line 2634

def _reduce_none( val, _values, result )
 result
end