blob: fff0299812550f9905f6449911cc270d589bdabb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
require 'action_dispatch/journey/scanner'
require 'action_dispatch/journey/nodes/node'
module ActionDispatch
module Journey # :nodoc:
class Parser < Racc::Parser # :nodoc:
include Journey::Nodes
def self.parse(string)
new.parse string
end
def initialize
@scanner = Scanner.new
end
def parse(string)
@scanner.scan_setup(string)
do_parse
end
def next_token
@scanner.next_token
end
end
end
end
|