Table of Contents

Introduction

Using the scripting language without any aditional features is very straightforward:

using TabScript;

class Program{
	static void Main(){
		//Get source
		string src = File.ReadAllText("program.tbs");
		
		try{
			TableScript script = TableScript.FromSource("program.tbs", src);
			
			script.Run();
		}catch(TabScriptException ex){
			Console.Error.WriteLine(ex);
		}
	}
}

You can use a custom IImportResolver to add features in the form of imports.
We will explore this feature further in the next tutorial