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-0.14.9 lib/code/parser/equal.rb
code-ruby-0.14.8 lib/code/parser/equal.rb
code-ruby-0.14.6 lib/code/parser/equal.rb
code-ruby-0.14.5 lib/code/parser/equal.rb
code-ruby-0.14.4 lib/code/parser/equal.rb
code-ruby-0.14.3 lib/code/parser/equal.rb
code-ruby-0.14.2 lib/code/parser/equal.rb
code-ruby-0.14.1 lib/code/parser/equal.rb
code-ruby-0.14.0 lib/code/parser/equal.rb
code-ruby-0.13.1 lib/code/parser/equal.rb
code-ruby-0.13.0 lib/code/parser/equal.rb
code-ruby-0.12.0 lib/code/parser/equal.rb
code-ruby-0.11.0 lib/code/parser/equal.rb
code-ruby-0.10.4 lib/code/parser/equal.rb
code-ruby-0.10.3 lib/code/parser/equal.rb
code-ruby-0.10.2 lib/code/parser/equal.rb
code-ruby-0.10.1 lib/code/parser/equal.rb
code-ruby-0.10.0 lib/code/parser/equal.rb