public void Visitline(string args) { CommonTokenStream str = new CommonTokenStream(); //We need the syntax for the core object Program myprog = new Program(str); myprog.error += new Program.errorreport(Onerror); myprog.AstEvent += new Program.AstReport(Onoutput); myprog.VisitLine(args); }