Sha256: f7f2b47bbfc65eb646dae89a39dcc49a16c9d3ac7884c865155cff3427ae4397

Contents?: true

Size: 487 Bytes

Versions: 18

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

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

      def right_statement
        Greater
      end

      def greater
        str(">")
      end

      def lesser
        str("<")
      end

      def equal
        str("=")
      end

      def operator
        (greater << equal) | (lesser << equal << greater.absent) |
          (greater << equal.absent) | lesser
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

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