Exemple #1
0
 public override object Execute(Script script, Scope scope, Token previousToken, object unknown)
 {
     return null;
 }
Exemple #2
0
 /// <summary>
 /// ConditionMatch is used to see if this builder should be doing something. CurrentChar and Matches are good methods to use here.
 /// </summary>
 /// <param name="lastToken">The last token that was placed in the list of tokens. null if there was nothing before it.</param>
 /// <param name="sourceCode">The source code, has CurrentChar and Matches().</param>
 /// <returns></returns>
 public abstract bool ConditionMatch(Token lastToken, SourceCode sourceCode);
Exemple #3
0
 public abstract object Execute(Script script, Scope scope, Token previousToken, object unknown);
Exemple #4
0
 /// <summary>
 /// This is called if condition match is true, and SimpleBuild is set to true. When called, the method should return a token that will be inserted into the call structure.
 /// </summary>
 /// <param name="lastToken"></param>
 /// <param name="engine"></param>
 /// <param name="script"></param>
 /// <param name="sourceCode"></param>
 /// <returns></returns>
 public virtual Token Build(Token lastToken, ScriptEngine engine, Script script, ref SourceCode sourceCode)
 {
     return null;
 }