Added struct Lexer * parameter to formatting functions.