# File lib/parser/lexer/stack_state.rb, line 31 def active? @stack[0] == 1 end
# File lib/parser/lexer/stack_state.rb, line 9 def clear @stack = 0 end
# File lib/parser/lexer/stack_state.rb, line 27 def lexpop push(pop || pop) end
# File lib/parser/lexer/stack_state.rb, line 20 def pop bit_value = @stack & 1 @stack >>= 1 bit_value == 1 end
# File lib/parser/lexer/stack_state.rb, line 13 def push(bit) bit_value = bit ? 1 : 0 @stack = (@stack << 1) | bit_value bit end
# File lib/parser/lexer/stack_state.rb, line 35 def to_s "[#{@stack.to_s(2)} <= #{@name}]" end
Generated with the Darkfish Rdoc Generator 2.