Feature #14170 ยป ripper_lexer_state_bits.patch
ext/ripper/lib/ripper/lexer.rb | ||
---|---|---|
def ==(i) super or to_int == i end
|
||
def &(i) self.class.new(to_int & i) end
|
||
def |(i) self.class.new(to_int & i) end
|
||
def allbits?(i) to_int.allbits?(i) end
|
||
def anybits?(i) to_int.anybits?(i) end
|
||
def nobits?(i) to_int.nobits?(i) end
|
||
end
|
||
Elem = Struct.new(:pos, :event, :tok, :state) do
|