Sha256: c3d259e430a41f2581dc0894b031ccfed025cd3150512abaf8f623a3f879a595

Contents?: true

Size: 437 Bytes

Versions: 126

Compression:

Stored size: 437 Bytes

Contents

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 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

Version data entries

126 entries across 122 versions & 10 rubygems

Version Path
actionpack-4.0.1.rc1 lib/action_dispatch/journey/parser_extras.rb
challah-1.0.0 vendor/bundle/gems/actionpack-4.0.0/lib/action_dispatch/journey/parser_extras.rb
actionpack-4.0.0 lib/action_dispatch/journey/parser_extras.rb
actionpack-4.0.0.rc2 lib/action_dispatch/journey/parser_extras.rb
actionpack-4.0.0.rc1 lib/action_dispatch/journey/parser_extras.rb
actionpack-4.0.0.beta1 lib/action_dispatch/journey/parser_extras.rb