ScriptStack 1.0.0
A .NET scripting language
|
An interface to modify the default process of reading text files into Script's. Mehr ...
Basisklasse für ScriptStack.Compiler.ScannerPrototype.
Öffentliche Methoden | |
List< String > | Scan (String strResourceName) |
An interface to modify the default process of reading text files into Script's.
THIS INTERFACE IS IN TESTING
There is a default routine how a script (text file) gets loaded into the scanner. But its a private method of Script. This interface has a public prototype called "Scan". Using this method you can hook into the private method in Script. Before the scanner actually reads the file it calls the "Scan" method from this interface. You can preprocess lines which are not part of code.
When a script is loaded it gets split into a list of lines, each element holding a line of the script. For e.g the default process of loading scripts does resolve "include" statements. It loads the included file into a list and replace the statement in the source script with the included lines.
The custom scanner must be assigned to the Manager using its Manager.Scanner property.
Wird benutzt von ScriptStack.Runtime.Script.Scan().