Sha256: a129761570bc8ccc130d93e13e21976c1e29d1f53dd34eabffaf626ad7a808b7

Contents?: true

Size: 542 Bytes

Versions: 226

Compression:

Stored size: 542 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

226 entries across 213 versions & 13 rubygems

Version Path
actionpack-6.1.7.7 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.1.3 lib/action_dispatch/journey/parser_extras.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionpack-6.1.6.1/lib/action_dispatch/journey/parser_extras.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/journey/parser_extras.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionpack-7.0.3.1/lib/action_dispatch/journey/parser_extras.rb
actionpack-7.1.2 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.1.1 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.1.0 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.1.0.rc2 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.1.0.rc1 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.1.0.beta1 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.0.8 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.0.7.2 lib/action_dispatch/journey/parser_extras.rb
actionpack-6.1.7.6 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.0.7.1 lib/action_dispatch/journey/parser_extras.rb
actionpack-6.1.7.5 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.0.7 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.0.6 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.0.5.1 lib/action_dispatch/journey/parser_extras.rb
actionpack-6.1.7.4 lib/action_dispatch/journey/parser_extras.rb