Sha256: f525d7457781ebfb2da067569036cf22cef562dacfa17cce61027380432b24b5

Contents?: true

Size: 678 Bytes

Versions: 38

Compression:

Stored size: 678 Bytes

Contents

# frozen_string_literal: true

class Code
  class Parser
    class Equality < LeftOperation
      def statement
        Greater
      end

      def equal
        str("=")
      end

      def greater
        str(">")
      end

      def lesser
        str("<")
      end

      def exclamation_point
        str("!")
      end

      def tilde
        str("~")
      end

      def right_statement
        Greater
      end

      def operator
        (equal << equal << equal) | (equal << equal) |
          (lesser << equal << greater) | (exclamation_point << equal) |
          (equal << tilde) | (tilde << equal) | (exclamation_point << tilde)
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

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