Class: Puffy::Parser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/puffy/parser.tab.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",
"IDENTIFIER",
"\"=\"",
"\"{\"",
"\"}\"",
"\",\"",
"ADDRESS",
"STRING",
"SERVICE",
"NODE",
"REGEX",
"DO",
"END",
"POLICY",
"LOG",
"IPV4",
"IPV6",
"CLIENT",
"SERVER",
"ON",
"BLOCK",
"PASS",
"IN",
"OUT",
"INET",
"INET6",
"PROTO",
"FROM",
"TO",
"ALL",
"ANY",
"VARIABLE",
"PORT",
"INTEGER",
"\":\"",
"RDR_TO",
"NAT_TO",
"$start",
"target",
"assignation",
"node",
"policy",
"service",
"variable_value_list",
"variable_value",
"service_name",
"block",
"node_name_list",
"block_with_policy",
"node_name",
"rules",
"pf_rule",
"ipv4_block",
"ipv6_block",
"action",
"optional_hosts",
"rule_direction",
"log",
"on_interface",
"rule_af",
"protospec",
"hosts",
"filteropts",
"direction_list",
"direction",
"protocol_list",
"protocol",
"hosts_from",
"hosts_port",
"hosts_to",
"host_list",
"host",
"port_list",
"port",
"filteropt" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



1212
1213
1214
# File 'lib/puffy/parser.tab.rb', line 1212

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