Rudimentary lexer for testing