public static void Main(string[] args)
{
try
{
Type testRigClass = Sharpen.Runtime.GetType("org.antlr.v4.gui.TestRig");
System.Console.Error.WriteLine("Warning: TestRig moved to org.antlr.v4.gui.TestRig; calling automatically");
try
{
MethodInfo mainMethod = testRigClass.GetMethod("main", typeof(string[]));
mainMethod.Invoke(null, (object)args);
}
catch (Exception)
{
System.Console.Error.WriteLine("Problems calling org.antlr.v4.gui.TestRig.main(args)");
}
}
catch (TypeLoadException)
{
System.Console.Error.WriteLine("Use of TestRig now requires the use of the tool jar, antlr-4.X-complete.jar");
System.Console.Error.WriteLine("Maven users need group ID org.antlr and artifact ID antlr4");
}
}
}