class ActionDispatch::Journey::Parser

def self.parse(string)

def self.parse(string)
  new.parse string
end

def _reduce_1(val, _values)

def _reduce_1(val, _values)
 Cat.new(val.first, val.last)
end

def _reduce_10(val, _values)

def _reduce_10(val, _values)
 Star.new(Symbol.new(val.last, Symbol::GREEDY_EXP))
end

def _reduce_15(val, _values)

def _reduce_15(val, _values)
 Slash.new(val.first)
end

def _reduce_16(val, _values)

def _reduce_16(val, _values)
 Symbol.new(val.first)
end

def _reduce_17(val, _values)

def _reduce_17(val, _values)
 Literal.new(val.first)
end

def _reduce_18(val, _values)

def _reduce_18(val, _values)
 Dot.new(val.first)
end

def _reduce_2(val, _values)

def _reduce_2(val, _values)
 val.first
end

def _reduce_7(val, _values)

def _reduce_7(val, _values)
 Group.new(val[1])
end

def _reduce_8(val, _values)

def _reduce_8(val, _values)
 Or.new([val.first, val.last])
end

def _reduce_9(val, _values)

def _reduce_9(val, _values)
 Or.new([val.first, val.last])
end

def _reduce_none(val, _values)

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

def initialize

def initialize
  @scanner = Scanner.new
end

def next_token

def next_token
  @scanner.next_token
end

def parse(string)

def parse(string)
  @scanner.scan_setup(string)
  do_parse
end