Initialize NewParser->function in constructor