Lexer for 4D code