Class: Gammo::CSSSelector::Parser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/gammo/css_selector/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_COMMA",
"T_PLUS",
"T_MINUS",
"T_HYPHEN",
"T_DIMENSION",
"T_NUMBER",
"T_STRING",
"T_IDENT",
"T_NOT",
"T_RBRACK",
"T_HASH",
"T_S",
"T_GREATER",
"T_TILDE",
"T_DOT",
"T_PIPE",
"T_ASTERISK",
"T_LBRACK",
"T_PREFIXMATCH",
"T_SUFFIXMATCH",
"T_SUBSTRINGMATCH",
"T_EQUAL",
"T_INCLUDES",
"T_DASHMATCH",
"T_COLON",
"T_FUNCTION",
"T_RPAREN",
"$start",
"selectors_group",
"optional_whitespaces",
"repeatable_whitespaces",
"repeatable_selectors",
"selector",
"repeatable_simple_selector_sequence",
"combinator",
"simple_selector_sequence",
"type_selector",
"universal",
"repeatable_selector_operators",
"selector_operators",
"hash",
"class",
"attrib",
"pseudo",
"negation",
"element_name",
"namespace_prefix",
"optional_attrib_clause",
"attrib_operators",
"optional_colon",
"functional_pseudo",
"repeatable_expressions",
"expression",
"negation_arg" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



784
785
786
# File 'lib/gammo/css_selector/parser.rb', line 784

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