blob: 4c7e82d93c948f606212a34367fb6483cde7d039 (
plain) (
tree)
|
|
require "action_dispatch/journey/scanner"
require "action_dispatch/journey/nodes/node"
module ActionDispatch
# :stopdoc:
module Journey
class Parser < Racc::Parser
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
# :startdoc:
end
|