Project

General

Profile

Feature #14170 ยป ripper_lexer_state_bits.patch

aycabta (aycabta .), 12/12/2017 12:19 PM

View differences:

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
    (1-1/1)