Sha256: 6d6b92dfcf5222a71ed3af782a0921e38ae46aaa94e09ccf30d2879962c74562

Contents?: true

Size: 563 Bytes

Versions: 9

Compression:

Stored size: 563 Bytes

Contents

# frozen_string_literal: true

# :markup: markdown

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

9 entries across 9 versions & 1 rubygems

Version Path
actionpack-7.2.2 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.2.1.2 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.2.1.1 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.2.1 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.2.0 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.2.0.rc1 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.2.0.beta3 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.2.0.beta2 lib/action_dispatch/journey/parser_extras.rb
actionpack-7.2.0.beta1 lib/action_dispatch/journey/parser_extras.rb