public static void FN(string cmd, string p1, LinkedList<ActionNode> lNode, LinkedListNode<ActionNode> before) { DirectFunctionCallNode dfn = new DirectFunctionCallNode(); dfn.Parameters = new List<string>() { BaseCompiled.SET_GET_FROM_RTV, p1 }; lNode.AddBefore(before, dfn); FunctionCallNode fn = new FunctionCallNode(); fn.Parameters = new List<string>() { cmd, p1 }; lNode.AddBefore(before, fn); }
public override void Compile() { CurrentToken = CurrentToken.Next.Next; while(CurrentToken.Value.TokenType != TokenType.ELLIPSISCLOSE) { var compiled = CompilerFactory.getInstance().GetCompiled(CurrentToken); compiled.CurrentToken = CurrentToken; compiled.Compile(); CurrentToken = CurrentToken.Next; Compiled.InsertAfter(compiled.Compiled); } FunctionCallNode print = new FunctionCallNode(); print.Parameters.Add("Print"); this.Compiled.Add(print); }
public override void Visit(FunctionCallNode node) { NextNode = node.Next; }
public abstract void Visit(FunctionCallNode functionCallNode);