C# Class XSpect.Yacq.SystemObjects.ModuleLoader

Loads YACQ text scripts, binary scripts, and libraries.
Datei anzeigen Open project: takeshik/yacq

Public Methods

Method Description
Import ( SymbolTable symbols, String name ) : Expression

Loads the file, apply to new SymbolTable and add the symbol named as file name, which refers to it in specified SymbolTable.

Import ( SymbolTable symbols, String name, String symbolName ) : Expression

Loads the file, apply to new SymbolTable and add the symbol with specified name, which refers to it in specified SymbolTable.

Load ( SymbolTable symbols, String name ) : Expression

Loads the file and apply to specified SymbolTable.

Load ( SymbolTable symbols, SymbolTable sourceSymbols ) : Expression

Adds symbols in specified SymbolTable.

ModuleLoader ( ) : System

Initializes a new instance of the ModuleLoader class.

Private Methods

Method Description
CreatePathSymbols ( SymbolTable symbols, IEnumerable fragments ) : SymbolTable
Get ( SymbolTable symbols, String name ) : String>.Tuple
GetFromFile ( SymbolTable symbols, String name ) : String>.Tuple
GetFromNamespace ( SymbolTable symbols, String name ) : String>.Tuple
GetFromResource ( SymbolTable symbols, String name ) : String>.Tuple
Load ( SymbolTable symbols, Object obj, String name ) : Expression

Method Details

Import() public method

Loads the file, apply to new SymbolTable and add the symbol named as file name, which refers to it in specified SymbolTable.
public Import ( SymbolTable symbols, String name ) : Expression
symbols XSpect.Yacq.Symbols.SymbolTable The symbol table to add the reference to the applied symbols.
name String Name of loading file. File extension can be omitted.
return System.Linq.Expressions.Expression

Import() public method

Loads the file, apply to new SymbolTable and add the symbol with specified name, which refers to it in specified SymbolTable.
public Import ( SymbolTable symbols, String name, String symbolName ) : Expression
symbols XSpect.Yacq.Symbols.SymbolTable The symbol table to add the reference to the applied symbols.
name String Name of loading file. File extension can be omitted.
symbolName String Name of the symbol which refers to the applied symbols.
return System.Linq.Expressions.Expression

Load() public method

Loads the file and apply to specified SymbolTable.
public Load ( SymbolTable symbols, String name ) : Expression
symbols XSpect.Yacq.Symbols.SymbolTable The symbol table as the applying target.
name String Name of loading file. File extension can be omitted.
return System.Linq.Expressions.Expression

Load() public method

Adds symbols in specified SymbolTable.
public Load ( SymbolTable symbols, SymbolTable sourceSymbols ) : Expression
symbols XSpect.Yacq.Symbols.SymbolTable The symbol table as the adding target.
sourceSymbols XSpect.Yacq.Symbols.SymbolTable The symbol table as the source to add.
return System.Linq.Expressions.Expression

ModuleLoader() public method

Initializes a new instance of the ModuleLoader class.
public ModuleLoader ( ) : System
return System