my toy implementations of the lex