static public ExpressionToken GetToken(string TokenName, SimpleToken stinstack, bool ConstExpected, ParameterExpression p) { ExpressionToken res = ParanthesisToken.GetToken(TokenName); if (res != null) return res; if (!ConstExpected) { res = Operator.GetFromString(TokenName); if (res != null) return res; } return SimpleToken.GetFromstring(TokenName, stinstack, p); }
public static SimpleToken GetFromstring(string name, SimpleToken old, ParameterExpression pe) { if (old == null) { return new AttributeToken(name, pe); } return old.NextSimpleTokenFactory(name, pe); }