Sha256: a3d1a3ef6c3598c5bed6757fd71eea7c4cbad09725eba9814f29253ade621023

Contents?: true

Size: 254 Bytes

Versions: 3

Compression:

Stored size: 254 Bytes

Contents

# frozen_string_literal: true

module Lrama
  class Grammar
    class Precedence < Struct.new(:type, :precedence, keyword_init: true)
      include Comparable

      def <=>(other)
        self.precedence <=> other.precedence
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lrama-0.7.0 lib/lrama/grammar/precedence.rb
lrama-0.6.11 lib/lrama/grammar/precedence.rb
lrama-0.6.10 lib/lrama/grammar/precedence.rb