public string GetCodeForListRm(ASTCompoundExpression op) { var args = op.Expressions; var nm = GetCodeForVar((ASTVariable)args[0]); var index = GetCodeForExpression(args[1]); return(Target.GetComplexSnippet("lists", "remove", new Dictionary <string, string>() { { "name", nm }, { "index", index } })); }
public string GetCodeForListAdd(ASTCompoundExpression op) { var args = op.Expressions; var nm = GetCodeForVar((ASTVariable)args[0]); var val = GetCodeForExpression(args[1]); return(Target.GetComplexSnippet("lists", "add", new Dictionary <string, string>() { { "name", nm }, { "val", val } })); }