public static void OnParse2(Parser parser, List <IExpression> list, ref int pos) { var item1 = list[pos].Cast <ExpressionParens>(); var item2 = list[pos + 3].Cast <IExpressionRight>(); list.RemoveRange(pos, 4); parser.Parse(ParseLevel.STRING_ARGS, item1); list.Insert(pos, new ExpressionFunc(ESUtility.ToStringArgs(item1), new ExpressionReturn(item2))); pos -= 1; }
public static void OnParse2(Parser parser, List <IExpression> list, ref int pos) { var item1 = list[pos + 1].Cast <ExpressionParens>(); var item2 = list[pos + 2].Cast <ExpressionBraces>(); list.RemoveRange(pos, 3); parser.Parse(ParseLevel.STRING_ARGS, item1); parser.Parse(item2); list.Insert(pos, new ExpressionFunc(ESUtility.ToStringArgs(item1), item2.Unbound())); pos -= 1; }