Class: Protobuf::ProtoParser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/protobuf/compiler/proto_parser.rb

Constant Summary

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",
"\";\"",
"\"import\"",
"STRING_LITERAL",
"\"package\"",
"IDENT",
"\".\"",
"\"option\"",
"\"=\"",
"\"message\"",
"\"extend\"",
"\"{\"",
"\"}\"",
"\"enum\"",
"\"service\"",
"\"syntax\"",
"\"rpc\"",
"\"(\"",
"\")\"",
"\"returns\"",
"\"group\"",
"\"[\"",
"\"]\"",
"\"required\"",
"\"optional\"",
"\"repeated\"",
"\"default\"",
"\"extensions\"",
"\"to\"",
"\"max\"",
"\"double\"",
"\"float\"",
"\"int32\"",
"\"int64\"",
"\"uint32\"",
"\"uint64\"",
"\"sint32\"",
"\"sint64\"",
"\"fixed32\"",
"\"fixed64\"",
"\"sfixed32\"",
"\"sfixed64\"",
"\"bool\"",
"\"string\"",
"\"bytes\"",
"\",\"",
"FLOAT_LITERAL",
"BOOLEAN_LITERAL",
"DEC_INTEGER",
"HEX_INTEGER",
"OCT_INTEGER",
"$start",
"proto",
"proto_item",
"message",
"extend",
"enum",
"import",
"package",
"option",
"service",
"syntax",
"dot_ident_list",
"option_body",
"constant",
"message_body",
"user_type",
"extend_body_list",
"extend_body",
"field",
"group",
"enum_body_list",
"enum_body",
"enum_field",
"integer_literal",
"service_body_list",
"service_body",
"rpc",
"rpc_arg",
"rpc_option_body",
"option_list",
"message_body_body_list",
"message_body_body",
"extensions",
"label",
"type",
"field_name",
"field_option_list",
"field_option",
"extension",
"comma_extension_list" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object

reduce 132 omitted



1459
1460
1461
# File 'lib/protobuf/compiler/proto_parser.rb', line 1459

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