Build lexer in a single step