Class: PuppetDB::Parser

Inherits:
Lexer show all
Defined in:
modules/puppetdbquery/lib/puppetdb/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",
"LPAREN",
"RPAREN",
"LBRACK",
"RBRACK",
"LBRACE",
"RBRACE",
"EQUALS",
"NOTEQUALS",
"MATCH",
"NOTMATCH",
"LESSTHAN",
"LESSTHANEQ",
"GREATERTHAN",
"GREATERTHANEQ",
"AT",
"HASH",
"ASTERISK",
"DOT",
"NOT",
"AND",
"OR",
"NUMBER",
"STRING",
"BOOLEAN",
"EXPORTED",
"$start",
"query",
"expression",
"identifier_path",
"resource_expression",
"comparison_expression",
"subquery",
"literal",
"boolean",
"string",
"integer",
"float",
"comparison_op",
"identifier",
"block_expression" ]
Racc_debug_parser =
false

Instance Attribute Summary

Attributes inherited from Lexer

#filename, #lineno, #state

Instance Method Summary collapse

Methods inherited from Lexer

#_next_token, #action, #load_file, #next_token, #scan_file, #scan_setup, #scan_str

Instance Method Details

#_reduce_none(val, _values) ⇒ Object



425
426
427
# File 'modules/puppetdbquery/lib/puppetdb/parser.rb', line 425

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