Sha256: ff03b51d33ef327f7d137710d3d23a4e41376c188d20110b1ad9226776fd261a

Contents?: true

Size: 486 Bytes

Versions: 21

Compression:

Stored size: 486 Bytes

Contents

class Code
  class Parser
    class Negation < Language
      def exclamation_point
        str("!")
      end

      def tilde
        str("~")
      end

      def plus
        str("+")
      end

      def operator
        exclamation_point | tilde | plus
      end

      def negation
        ::Code::Parser::Negation
      end

      def root
        (operator.aka(:operator) << negation.aka(:right)).aka(:negation) |
          ::Code::Parser::Function
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

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