Sha256: 9786797dacaf0aa67276e7068a4d207135b7c8dacbc3fd7e01af562fbd8ce258

Contents?: true

Size: 325 Bytes

Versions: 70

Compression:

Stored size: 325 Bytes

Contents

# frozen_string_literal: true

class Code
  class Parser
    class Shift < LeftOperation
      def statement
        Addition
      end

      def greater
        str(">")
      end

      def lesser
        str("<")
      end

      def operator
        (greater << greater) | (lesser << lesser)
      end
    end
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
code-ruby-0.10.2 lib/code/parser/shift.rb
code-ruby-0.10.1 lib/code/parser/shift.rb
code-ruby-0.10.0 lib/code/parser/shift.rb
code-ruby-0.9.3 lib/code/parser/shift.rb
code-ruby-0.9.2 lib/code/parser/shift.rb
code-ruby-0.9.1 lib/code/parser/shift.rb
code-ruby-0.9.0 lib/code/parser/shift.rb
code-ruby-0.8.5 lib/code/parser/shift.rb
code-ruby-0.8.4 lib/code/parser/shift.rb
code-ruby-0.8.3 lib/code/parser/shift.rb
code-ruby-0.8.2 lib/code/parser/shift.rb
code-ruby-0.8.1 lib/code/parser/shift.rb
code-ruby-0.8.0 lib/code/parser/shift.rb
code-ruby-0.7.8 lib/code/parser/shift.rb
code-ruby-0.7.7 lib/code/parser/shift.rb
code-ruby-0.7.6 lib/code/parser/shift.rb
code-ruby-0.7.5 lib/code/parser/shift.rb
code-ruby-0.7.4 lib/code/parser/shift.rb
code-ruby-0.7.3 lib/code/parser/shift.rb
code-ruby-0.7.2 lib/code/parser/shift.rb