Class-ified Lexer and Compiler