Sha256: c89969bebbcdb255f456f6d00c78ab9f548d12f0303895a7dce98a979dfb2bf1

Contents?: true

Size: 485 Bytes

Versions: 65

Compression:

Stored size: 485 Bytes

Contents

# frozen_string_literal: true

class Code
  class Parser
    class Splat < Language
      def statement
        Class
      end

      def splat
        Splat
      end

      def whitespace
        Whitespace
      end

      def whitespace?
        whitespace.maybe
      end

      def ampersand
        str("&")
      end

      def root
        (ampersand.aka(:operator) << whitespace? << splat.aka(:right)).aka(
          :splat
        ) | statement
      end
    end
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
code-ruby-0.9.1 lib/code/parser/splat.rb
code-ruby-0.9.0 lib/code/parser/splat.rb
code-ruby-0.8.5 lib/code/parser/splat.rb
code-ruby-0.8.4 lib/code/parser/splat.rb
code-ruby-0.8.3 lib/code/parser/splat.rb
code-ruby-0.8.2 lib/code/parser/splat.rb
code-ruby-0.8.1 lib/code/parser/splat.rb
code-ruby-0.8.0 lib/code/parser/splat.rb
code-ruby-0.7.8 lib/code/parser/splat.rb
code-ruby-0.7.7 lib/code/parser/splat.rb
code-ruby-0.7.6 lib/code/parser/splat.rb
code-ruby-0.7.5 lib/code/parser/splat.rb
code-ruby-0.7.4 lib/code/parser/splat.rb
code-ruby-0.7.3 lib/code/parser/splat.rb
code-ruby-0.7.2 lib/code/parser/splat.rb
code-ruby-0.7.1 lib/code/parser/splat.rb
code-ruby-0.7.0 lib/code/parser/splat.rb
code-ruby-0.6.7 lib/code/parser/splat.rb
code-ruby-0.6.6 lib/code/parser/splat.rb
code-ruby-0.6.5 lib/code/parser/splat.rb