Method: RLTK::Lexer::Environment#set_state

Defined in:
lib/rltk/lexer.rb

#set_state(state) ⇒ void

This method returns an undefined value.

Sets the value on the top of the state stack.

Parameters:

  • state (Symbol)

    New state for the lexing environment.



292
293
294
295
296
# File 'lib/rltk/lexer.rb', line 292

def set_state(state)
	@state[-1] = state
	
	nil
end