Class TableScript
- Namespace
- TabScript
- Assembly
- TableScript.dll
public class TableScript
- Inheritance
-
TableScript
- Inherited Members
Fields
OnReport
public Action<TabScriptException> OnReport
Field Value
Properties
body
public Snippet body { get; }
Property Value
functions
public TabFunc[] functions { get; }
Property Value
- TabFunc[]
Methods
CallFunction(string, string, params Table[])
Always call after running!
public Table CallFunction(string import, string identifier, params Table[] args)
Parameters
Returns
FromImport(ResolvedImport)
Generate from import. Will use a default StandardImportResolver
public static TableScript FromImport(ResolvedImport import)
Parameters
importResolvedImport
Returns
Exceptions
- TabScriptException
Thrown when an error occurs while compiling
FromImport(ResolvedImport, IImportResolver)
Generate from import
public static TableScript FromImport(ResolvedImport import, IImportResolver ir)
Parameters
importResolvedImportirIImportResolver
Returns
Exceptions
- TabScriptException
Thrown when an error occurs while compiling
FromImport(ResolvedImport, IImportResolver, Action<TabScriptException>)
Generate from import.
public static TableScript FromImport(ResolvedImport import, IImportResolver ir, Action<TabScriptException> report)
Parameters
importResolvedImportirIImportResolverreportAction<TabScriptException>
Returns
Exceptions
- TabScriptException
Thrown when an error occurs while compiling
FromSource(string, string)
Generate from source. Will use a default StandardImportResolver
public static TableScript FromSource(string filename, string src)
Parameters
Returns
Exceptions
- TabScriptException
Thrown when an error occurs while compiling
FromSource(string, string, IImportResolver)
Generate from source
public static TableScript FromSource(string filename, string src, IImportResolver ir)
Parameters
filenamestringsrcstringirIImportResolver
Returns
Exceptions
- TabScriptException
Thrown when an error occurs while compiling
FromSource(string, string, IImportResolver, Action<TabScriptException>)
Generate from source
public static TableScript FromSource(string filename, string src, IImportResolver ir, Action<TabScriptException> report)
Parameters
filenamestringsrcstringirIImportResolverreportAction<TabScriptException>
Returns
Exceptions
- TabScriptException
Thrown when an error occurs while compiling
Run(IEnumerable<string>)
Run the script
public void Run(IEnumerable<string> args)
Parameters
argsIEnumerable<string>
Run(Table)
Run the script
public void Run(Table args = null)
Parameters
argsTable
SourceAsImport(string, string)
Generate an import from source
public static ResolvedImport SourceAsImport(string filename, string src)
Parameters
Returns
Exceptions
- TabScriptException
Thrown when an error occurs while compiling
SourceAsImport(string, string, Action<TabScriptException>)
Generate an import from source
public static ResolvedImport SourceAsImport(string filename, string src, Action<TabScriptException> report)
Parameters
filenamestringsrcstringreportAction<TabScriptException>
Returns
Exceptions
- TabScriptException
Thrown when an error occurs while compiling
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.