allow footer code to be placed in parser (or lexer)