Sha256: e199cf428d542c8b1333471091f8e5b4693c7844570ae76f68cf519bbeaf01cd

Contents?: true

Size: 1.08 KB

Versions: 38

Compression:

Stored size: 1.08 KB

Contents

# frozen_string_literal: true

class Code
  class Parser
    class Equal < RightOperation
      def statement
        Rescue
      end

      def equal
        str("=")
      end

      def plus
        str("+")
      end

      def minus
        str("-")
      end

      def asterisk
        str("*")
      end

      def slash
        str("/")
      end

      def percent
        str("%")
      end

      def greater
        str(">")
      end

      def lesser
        str("<")
      end

      def ampersand
        str("&")
      end

      def pipe
        str("|")
      end

      def caret
        str("^")
      end

      def dot
        str(".")
      end

      def right_statement
        OrKeyword
      end

      def operator
        equal | (plus << equal) | (minus << equal) | (asterisk << equal) |
          (slash << equal) | (percent << equal) |
          (greater << greater << equal) | (lesser << lesser << equal) |
          (ampersand << equal) | (pipe << equal) | (caret << equal) |
          (pipe << pipe << equal) | (ampersand << ampersand << equal)
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
code-ruby-1.1.3 lib/code/parser/equal.rb
code-ruby-1.1.1 lib/code/parser/equal.rb
code-ruby-1.1.0 lib/code/parser/equal.rb
code-ruby-1.0.0 lib/code/parser/equal.rb
code-ruby-0.15.16 lib/code/parser/equal.rb
code-ruby-0.15.15 lib/code/parser/equal.rb
code-ruby-0.15.14 lib/code/parser/equal.rb
code-ruby-0.15.13 lib/code/parser/equal.rb
code-ruby-0.15.12 lib/code/parser/equal.rb
code-ruby-0.15.11 lib/code/parser/equal.rb
code-ruby-0.15.10 lib/code/parser/equal.rb
code-ruby-0.15.9 lib/code/parser/equal.rb
code-ruby-0.15.8 lib/code/parser/equal.rb
code-ruby-0.15.7 lib/code/parser/equal.rb
code-ruby-0.15.6 lib/code/parser/equal.rb
code-ruby-0.15.5 lib/code/parser/equal.rb
code-ruby-0.15.4 lib/code/parser/equal.rb
code-ruby-0.15.3 lib/code/parser/equal.rb
code-ruby-0.15.2 lib/code/parser/equal.rb
code-ruby-0.15.0 lib/code/parser/equal.rb