Class: ActionDispatch::Journey::Parser
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Racc::Parser
|
|
Instance Chain:
self,
Nodes ,
Racc::Parser
|
|
Inherits: |
Racc::Parser
|
Defined in: | actionpack/lib/action_dispatch/journey/parser.rb, actionpack/lib/action_dispatch/journey/parser_extras.rb |
Constant Summary
-
Racc_arg =
# File 'actionpack/lib/action_dispatch/journey/parser.rb', line 93[ 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_debug_parser =
# File 'actionpack/lib/action_dispatch/journey/parser.rb', line 132false
-
Racc_token_to_s_table =
# File 'actionpack/lib/action_dispatch/journey/parser.rb', line 109[ "$end", "error", "SLASH", "LITERAL", "SYMBOL", "LPAREN", "RPAREN", "DOT", "STAR", "OR", "$start", "expressions", "expression", "or", "terminal", "group", "star", "symbol", "literal", "slash", "dot" ]
Class Method Summary
- .new ⇒ Parser constructor
- .parse(string)
Instance Method Summary
-
#_reduce_1(val, _values)
reduce 0 omitted.
- #_reduce_10(val, _values)
-
#_reduce_15(val, _values)
reduce 14 omitted.
- #_reduce_16(val, _values)
- #_reduce_17(val, _values)
- #_reduce_18(val, _values)
- #_reduce_2(val, _values)
-
#_reduce_7(val, _values)
reduce 6 omitted.
- #_reduce_8(val, _values)
- #_reduce_9(val, _values)
- #_reduce_none(val, _values)
- #next_token
- #parse(string)
Constructor Details
.new ⇒ Parser
Class Method Details
.parse(string)
[ GitHub ]# File 'actionpack/lib/action_dispatch/journey/parser_extras.rb', line 14
def self.parse(string) new.parse string end
Instance Method Details
#_reduce_1(val, _values)
reduce 0 omitted
#_reduce_10(val, _values)
[ GitHub ]#_reduce_15(val, _values)
reduce 14 omitted
#_reduce_16(val, _values)
[ GitHub ]#_reduce_17(val, _values)
[ GitHub ]#_reduce_18(val, _values)
[ GitHub ]#_reduce_2(val, _values)
[ GitHub ]# File 'actionpack/lib/action_dispatch/journey/parser.rb', line 142
def _reduce_2(val, _values) val.first end
#_reduce_7(val, _values)
reduce 6 omitted
#_reduce_8(val, _values)
[ GitHub ]#_reduce_9(val, _values)
[ GitHub ]#_reduce_none(val, _values)
[ GitHub ]# File 'actionpack/lib/action_dispatch/journey/parser.rb', line 194
def _reduce_none(val, _values) val[0] end
#next_token
[ GitHub ]# File 'actionpack/lib/action_dispatch/journey/parser_extras.rb', line 27
def next_token @scanner.next_token end
#parse(string)
[ GitHub ]# File 'actionpack/lib/action_dispatch/journey/parser_extras.rb', line 22
def parse(string) @scanner.scan_setup(string) do_parse end