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-7.1.5 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.1.4.2 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.0.8.6 lib/action_dispatch/journey/parser_extras.rb
actionpack-6.1.7.10 lib/action_dispatch/journey/parser_extras.rb
actionpack-6.1.7.9 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.1.4.1 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.0.8.5 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.1.4 lib/action_dispatch/journey/parser_extras.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actionpack-7.1.3.4/lib/action_dispatch/journey/parser_extras.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actionpack-7.0.8.4/lib/action_dispatch/journey/parser_extras.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_dispatch/journey/parser_extras.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_dispatch/journey/parser_extras.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_dispatch/journey/parser_extras.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/actionpack-7.1.3.4/lib/action_dispatch/journey/parser_extras.rb
actionpack-7.1.3.4 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.0.8.4 lib/action_dispatch/journey/parser_extras.rb
actionpack-6.1.7.8 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.1.3.2 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.1.3.1 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.0.8.1 lib/action_dispatch/journey/parser_extras.rb