|
/// Public domain code by Christopher Diggins
/// http://www.cat-language.com
using System;
using System.Collections.Generic;
namespace Cat
{
public class MainClass
{
public static string gsInputFileName = "";
static void Main(string[] a)
{
if (a.Length > 0)
{
gsInputFileName = a[0];
}
try
{
if (Config.gbUnitTesting)
{
Primitives.RegisterAtomicPrograms();
Tests.RunCoreTests();
Primitives.RegisterStdPrograms();
Tests.RunLibraryTests();
Tests.RunKnownIssuesTests();
Tests.OutputTestCoverage();
Scope.Global().Clear();
}
Primitives.RegisterAtomicPrograms();
Primitives.RegisterStdPrograms();
Interpreter cat = new Interpreter();
cat.LaunchSession();
}
catch (Exception e)
{
Console.WriteLine("Untrapped exception occurred: {0}", e.Message);
Console.WriteLine("Press any key to exit ...");
Console.Read();
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.