Sha256: 804bd3ae760716ac864d55455e8d581f37b033648cf8cfd3a9518868429d4dfe

Contents?: true

Size: 365 Bytes

Versions: 12

Compression:

Stored size: 365 Bytes

Contents

# frozen_string_literal: true

class Code
  class Parser
    class Multiplication < LeftOperation
      def statement
        Negation
      end

      def asterisk
        str("*")
      end

      def slash
        str("/")
      end

      def percent
        str("%")
      end

      def operator
        asterisk | slash | percent
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
code-ruby-0.7.3 lib/code/parser/multiplication.rb
code-ruby-0.7.2 lib/code/parser/multiplication.rb
code-ruby-0.7.1 lib/code/parser/multiplication.rb
code-ruby-0.7.0 lib/code/parser/multiplication.rb
code-ruby-0.6.7 lib/code/parser/multiplication.rb
code-ruby-0.6.6 lib/code/parser/multiplication.rb
code-ruby-0.6.5 lib/code/parser/multiplication.rb
code-ruby-0.6.4 lib/code/parser/multiplication.rb
code-ruby-0.6.3 lib/code/parser/multiplication.rb
code-ruby-0.6.2 lib/code/parser/multiplication.rb
code-ruby-0.6.1 lib/code/parser/multiplication.rb
code-ruby-0.6.0 lib/code/parser/multiplication.rb