Class: RSAC::GeneratedParser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/antisamy/csspool/rsac/sac/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",
"FUNCTION",
"INCLUDES",
"DASHMATCH",
"LBRACE",
"HASH",
"PLUS",
"GREATER",
"S",
"STRING",
"IDENT",
"COMMA",
"URI",
"CDO",
"CDC",
"NUMBER",
"PERCENTAGE",
"LENGTH",
"EMS",
"EXS",
"ANGLE",
"TIME",
"FREQ",
"IMPORTANT_SYM",
"IMPORT_SYM",
"MEDIA_SYM",
"PAGE_SYM",
"CHARSET_SYM",
"DIMENSION",
"\";\"",
"\"@\"",
"\"}\"",
"\":\"",
"\"/\"",
"\"-\"",
"\".\"",
"\"*\"",
"\"[\"",
"\"]\"",
"\")\"",
"\"=\"",
"$start",
"stylesheet",
"s_cdo_cdc_0toN",
"s_0toN",
"import_0toN",
"ruleset_media_page_0toN",
"ruleset",
"media",
"page",
"import",
"string_or_uri",
"medium_0toN",
"ignorable_at",
"string_uri_or_ident_1toN",
"medium_rollup",
"ruleset_0toN",
"medium_1toN",
"medium",
"page_start",
"declaration_0toN",
"optional_page",
"optional_pseudo_page",
"operator",
"combinator",
"unary_operator",
"property",
"selector_1toN",
"selector",
"simple_selector_1toN",
"selector_list",
"simple_selector",
"element_name",
"hcap_0toN",
"hcap_1toN",
"class",
"attrib",
"attrib_val_0or1",
"pseudo",
"function",
"declaration",
"expr",
"prio_0or1",
"prio",
"term",
"num_or_length",
"hexcolor",
"attribute_id",
"eql_incl_dash" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object

reduce 120 omitted



1007
1008
1009
# File 'lib/antisamy/csspool/rsac/sac/generated_parser.rb', line 1007

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