Lexer logic mostly in place. Not yet integrated.