public ICLS_Expression Compiler_Expression_Set(IList<Token> tlist, CLS_Content content, int pos, int posend) { int expbegin = pos + 2; int bdep; int expend = FindCodeAny(tlist, ref expbegin, out bdep); if (expend != posend) { expend = posend; } ICLS_Expression v; bool succ = Compiler_Expression(tlist,content, expbegin, expend, out v); if (succ && v != null) { CLS_Expression_SetValue define = new CLS_Expression_SetValue(pos,expend); define.value_name = tlist[pos].text; define.listParam.Add(v); return define; } LogError(tlist,"不正确的定义表达式:" ,pos,posend); return null; }
public ICLS_Expression Compiler_Expression_Set(IList <Token> tlist, CLS_Content content, int pos, int posend) { int expbegin = pos + 2; int bdep; int expend = FindCodeAny(tlist, ref expbegin, out bdep); if (expend != posend) { expend = posend; } ICLS_Expression v; bool succ = Compiler_Expression(tlist, content, expbegin, expend, out v); if (succ && v != null) { CLS_Expression_SetValue define = new CLS_Expression_SetValue(pos, expend); define.value_name = tlist[pos].text; define.listParam.Add(v); return(define); } LogError(tlist, "不正确的定义表达式:", pos, posend); return(null); }