Class: EDTF::Parser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/edtf/parser.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",
"T",
"Z",
"E",
"X",
"U",
"UNKNOWN",
"OPEN",
"LONGYEAR",
"UNMATCHED",
"DOTS",
"UA",
"PUA",
"\":\"",
"\"2\"",
"\"4\"",
"\"0\"",
"\"-\"",
"\"+\"",
"\"1\"",
"\"/\"",
"\"3\"",
"\"^\"",
"\"[\"",
"\"]\"",
"\"{\"",
"\"}\"",
"\",\"",
"\"(\"",
"\")\"",
"\"-(\"",
"\"5\"",
"\"6\"",
"\"7\"",
"\"8\"",
"\"9\"",
"$start",
"edtf",
"level_0_expression",
"level_1_expression",
"level_2_expression",
"date",
"date_time",
"year",
"year_month",
"year_month_day",
"time",
"base_time",
"zone_offset",
"hour",
"minute",
"second",
"midnight",
"zone_offset_hour",
"positive_zone_offset",
"d01_13",
"d01_59",
"positive_year",
"digit",
"month",
"d01_12",
"day",
"d01_31",
"d00_23",
"d00_59",
"unknown",
"unspecified",
"level_1_interval",
"long_year_simple",
"season",
"unspecified_year",
"unspecified_month",
"unspecified_day",
"unspecified_day_and_month",
"positive_unspecified_year",
"level_1_start",
"level_1_end",
"partial_uncertain_or_approximate",
"partial_unspecified",
"long_year",
"positive_digit",
"season_number",
"ua",
"season_qualified",
"choice_list",
"inclusive_list",
"masked_precision",
"date_and_calendar",
"long_year_scientific",
"integer",
"int1_4",
"list",
"earlier",
"list_elements",
"later",
"list_element",
"atomic",
"consecutives",
"pua_base",
"pua_year",
"pua_year_month",
"pua_year_month_day",
"d01_23",
"d01_29",
"d01_30" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



1836
1837
1838
# File 'lib/edtf/parser.rb', line 1836

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