Sha256: c91b3f8fed9bb8a6d7a918c6e7afc42b6bc1f647c68be7c08e9bd7b8cc32dd77

Contents?: true

Size: 282 Bytes

Versions: 21

Compression:

Stored size: 282 Bytes

Contents

class Code
  class Parser
    class Addition < Operation
      def statement
        ::Code::Parser::Multiplication
      end

      def plus
        str("+")
      end

      def minus
        str("-")
      end

      def operator
        plus | minus
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
template-ruby-0.5.6 lib/code/parser/addition.rb
language-ruby-0.5.6 lib/code/parser/addition.rb
code-ruby-0.5.6 lib/code/parser/addition.rb
template-ruby-0.5.5 lib/code/parser/addition.rb
language-ruby-0.5.5 lib/code/parser/addition.rb
code-ruby-0.5.5 lib/code/parser/addition.rb
template-ruby-0.5.4 lib/code/parser/addition.rb
language-ruby-0.5.4 lib/code/parser/addition.rb
code-ruby-0.5.4 lib/code/parser/addition.rb
template-ruby-0.5.3 lib/code/parser/addition.rb
language-ruby-0.5.3 lib/code/parser/addition.rb
code-ruby-0.5.3 lib/code/parser/addition.rb
template-ruby-0.5.2 lib/code/parser/addition.rb
language-ruby-0.5.2 lib/code/parser/addition.rb
code-ruby-0.5.2 lib/code/parser/addition.rb
language-ruby-0.5.1 lib/code/parser/addition.rb
template-ruby-0.5.1 lib/code/parser/addition.rb
code-ruby-0.5.1 lib/code/parser/addition.rb
template-ruby-0.5.0 lib/code/parser/addition.rb
language-ruby-0.5.0 lib/code/parser/addition.rb