Sha256: 7ac46a1e63290f880ad0e5fcb5de3ce2d6a0dd5f5e998cbadbb9dfec287830ef

Contents?: true

Size: 403 Bytes

Versions: 12

Compression:

Stored size: 403 Bytes

Contents

class Code
  class Parser
    class Negation < ::Code::Parser
      def parse
        if operator = match([EXCLAMATION_POINT, TILDE, PLUS])
          {
            negation: {
              operator: operator,
              statement: parse_subclass(::Code::Parser::Negation)
            }
          }
        else
          parse_subclass(::Code::Parser::Splat)
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
template-ruby-parser-0.1.8 lib/code/parser/negation.rb
code-ruby-parser-0.1.8 lib/code/parser/negation.rb
template-ruby-parser-0.1.7 lib/code/parser/negation.rb
code-ruby-parser-0.1.7 lib/code/parser/negation.rb
template-ruby-parser-0.1.6 lib/code/parser/negation.rb
code-ruby-parser-0.1.6 lib/code/parser/negation.rb
template-ruby-parser-0.1.5 lib/code/parser/negation.rb
code-ruby-parser-0.1.5 lib/code/parser/negation.rb
template-ruby-parser-0.1.4 lib/code/parser/negation.rb
code-ruby-parser-0.1.4 lib/code/parser/negation.rb
template-ruby-parser-0.1.3 lib/code/parser/negation.rb
code-ruby-parser-0.1.3 lib/code/parser/negation.rb