Add code to run the parser as a standalone
enable kaparser to run as a script