Class: CSSPool::CSS::Parser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/csspool/css/parser.rb

Direct Known Subclasses

Tokenizer

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",
"CHARSET_SYM",
"IMPORT_SYM",
"STRING",
"SEMI",
"IDENT",
"S",
"COMMA",
"LBRACE",
"RBRACE",
"STAR",
"HASH",
"LSQUARE",
"RSQUARE",
"EQUAL",
"INCLUDES",
"DASHMATCH",
"RPAREN",
"FUNCTION",
"GREATER",
"PLUS",
"SLASH",
"NUMBER",
"MINUS",
"LENGTH",
"PERCENTAGE",
"EMS",
"EXS",
"ANGLE",
"TIME",
"FREQ",
"URI",
"IMPORTANT_SYM",
"MEDIA_SYM",
"LPAREN",
"\":\"",
"\".\"",
"$start",
"document",
"stylesheet",
"@1",
"charset",
"import",
"body",
"import_location",
"medium",
"media_query",
"media_expression",
"expression",
"expression_internal",
"property",
"expr",
"ruleset",
"media",
"start_media",
"start_selector",
"declarations",
"selectors",
"selector",
"simple_selector",
"combinator",
"element_name",
"hcap",
"hash",
"class",
"attrib",
"pseudo",
"declaration",
"prio",
"operator",
"term",
"ident",
"numeric",
"string",
"uri",
"hexcolor",
"function",
"unary_operator" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



1292
1293
1294
# File 'lib/csspool/css/parser.rb', line 1292

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