Sha256: f156bf533fecccae6d3908164bd5488f5868febe0b28dd64ad825585ca05db8d

Contents?: true

Size: 1.03 KB

Versions: 27

Compression:

Stored size: 1.03 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 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

27 entries across 27 versions & 1 rubygems

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