private static Tree.IExpression[] GetArguments(Gen::List <Tree.IExpression> args_rev) { Tree.IExpression[] args = new Tree.IExpression[args_rev.Count]; for (int iS = args_rev.Count - 1, iD = 0; iS >= 0; iS--, iD++) { args[iD] = args_rev[iS]; } return(args); }
//------------------------------------------------------------------ // 結果の取得 //------------------------------------------------------------------ /// <summary> /// 引数を順番に格納した配列を取得します。 /// </summary> /// <returns></returns> public Tree.IExpression[] GetArguments() { if (index == 0 && args_rev[0] == null) { return(new Tree.IExpression[0]); } Tree.IExpression[] args = new Tree.IExpression[args_rev.Count]; for (int iS = args_rev.Count - 1, iD = 0; iS >= 0; iS--, iD++) { args[iD] = args_rev[iS]; } return(args); }
public BinaryPrefixElement(BinaryOperatorDef def, IExpressionElement left) { this.priority = def.prioR; this.op = def.word; this.left = left.Expression; }
public ExpressionElement(Tree.IExpression expression) { this.expression = expression; }
public static string TestParse(string input) { Tree.IExpression e = Cobalt.Parse.LanguageDefinition.Parse(input); return(e.ToSource()); }