Added node system to save the current state of a lexer