summaryrefslogtreecommitdiff
path: root/tool/lrama/lib/lrama/grammar/type.rb
blob: 6b4b0961a141778172bbb77709af91b69cec4f28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module Lrama
  class Grammar
    class Type
      attr_reader :id, :tag

      def initialize(id:, tag:)
        @id = id
        @tag = tag
      end

      def ==(other)
        self.class == other.class &&
        self.id == other.id &&
        self.tag == other.tag
      end
    end
  end
end