Sha256: d49d89531561d54b82a66d4f995205516007e60dc427b4db70abfbfafdd49226

Contents?: true

Size: 223 Bytes

Versions: 20

Compression:

Stored size: 223 Bytes

Contents

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

20 entries across 20 versions & 1 rubygems

Version Path
lrama-0.6.9 lib/lrama/grammar/precedence.rb
lrama-0.6.8 lib/lrama/grammar/precedence.rb
lrama-0.6.7 lib/lrama/grammar/precedence.rb
lrama-0.6.6 lib/lrama/grammar/precedence.rb
lrama-0.6.5 lib/lrama/grammar/precedence.rb
lrama-0.6.4 lib/lrama/grammar/precedence.rb
lrama-0.6.3 lib/lrama/grammar/precedence.rb
lrama-0.6.2 lib/lrama/grammar/precedence.rb
lrama-0.6.1 lib/lrama/grammar/precedence.rb
lrama-0.6.0 lib/lrama/grammar/precedence.rb
lrama-0.5.12 lib/lrama/grammar/precedence.rb
lrama-0.5.11 lib/lrama/grammar/precedence.rb
lrama-0.5.10 lib/lrama/grammar/precedence.rb
lrama-0.5.9 lib/lrama/grammar/precedence.rb
lrama-0.5.8 lib/lrama/grammar/precedence.rb
lrama-0.5.7 lib/lrama/grammar/precedence.rb
lrama-0.5.6 lib/lrama/grammar/precedence.rb
lrama-0.5.5 lib/lrama/grammar/precedence.rb
lrama-0.5.4 lib/lrama/grammar/precedence.rb
lrama-0.5.3 lib/lrama/grammar/precedence.rb