Sha256: f9ed53853eb4fc0a26e706fa1e6b4ba13bec652af0b5e7833b40e2552e8a0acb

Contents?: true

Size: 465 Bytes

Versions: 12

Compression:

Stored size: 465 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::GreaterThan
        )
      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/equality.rb
code-ruby-parser-0.1.8 lib/code/parser/equality.rb
template-ruby-parser-0.1.7 lib/code/parser/equality.rb
code-ruby-parser-0.1.7 lib/code/parser/equality.rb
template-ruby-parser-0.1.6 lib/code/parser/equality.rb
code-ruby-parser-0.1.6 lib/code/parser/equality.rb
template-ruby-parser-0.1.5 lib/code/parser/equality.rb
code-ruby-parser-0.1.5 lib/code/parser/equality.rb
template-ruby-parser-0.1.4 lib/code/parser/equality.rb
code-ruby-parser-0.1.4 lib/code/parser/equality.rb
template-ruby-parser-0.1.3 lib/code/parser/equality.rb
code-ruby-parser-0.1.3 lib/code/parser/equality.rb