Sha256: 1db74259064505f82fe28b3f7d8403f45ccef1611835f0a215d3a0dbd5fefc64

Contents?: true

Size: 459 Bytes

Versions: 6

Compression:

Stored size: 459 Bytes

Contents

class Code
  class Parser
    class Equality < ::Code::Parser
      def parse
        parse_subclass(
          ::Code::Parser::Operation,
          operators: [
            EQUAL + EQUAL + EQUAL,
            LESSER + EQUAL + GREATER,
            EQUAL + TILDE,
            EXCLAMATION_POINT + TILDE,
            EQUAL + EQUAL,
            EXCLAMATION_POINT + EQUAL
          ],
          subclass: ::Code::Parser::While
        )
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
template-ruby-parser-0.1.2 lib/code/parser/equality.rb
code-ruby-parser-0.1.2 lib/code/parser/equality.rb
template-ruby-parser-0.1.1 lib/code/parser/equality.rb
code-ruby-parser-0.1.1 lib/code/parser/equality.rb
template-ruby-parser-0.1.0 lib/code/parser/equality.rb
code-ruby-parser-0.1.0 lib/code/parser/equality.rb