Table of Contents

Class TableScript

Namespace
TabScript
Assembly
TableScript.dll
public class TableScript
Inheritance
TableScript
Inherited Members

Fields

OnReport

public Action<TabScriptException> OnReport

Field Value

Action<TabScriptException>

Properties

body

public Snippet body { get; }

Property Value

Snippet

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

import string
identifier string
args Table[]

Returns

Table

FromImport(ResolvedImport)

Generate from import. Will use a default StandardImportResolver

public static TableScript FromImport(ResolvedImport import)

Parameters

import ResolvedImport

Returns

TableScript

Exceptions

TabScriptException

Thrown when an error occurs while compiling

FromImport(ResolvedImport, IImportResolver)

Generate from import

public static TableScript FromImport(ResolvedImport import, IImportResolver ir)

Parameters

import ResolvedImport
ir IImportResolver

Returns

TableScript

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

import ResolvedImport
ir IImportResolver
report Action<TabScriptException>

Returns

TableScript

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

filename string
src string

Returns

TableScript

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

filename string
src string
ir IImportResolver

Returns

TableScript

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

filename string
src string
ir IImportResolver
report Action<TabScriptException>

Returns

TableScript

Exceptions

TabScriptException

Thrown when an error occurs while compiling

Run(IEnumerable<string>)

Run the script

public void Run(IEnumerable<string> args)

Parameters

args IEnumerable<string>

Run(Table)

Run the script

public void Run(Table args = null)

Parameters

args Table

SourceAsImport(string, string)

Generate an import from source

public static ResolvedImport SourceAsImport(string filename, string src)

Parameters

filename string
src string

Returns

ResolvedImport

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

filename string
src string
report Action<TabScriptException>

Returns

ResolvedImport

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.