/// <summary> /// Tries parsing a literal term in the given text. /// </summary> public static bool AcceptLiteral(string Text, ref int Index, ref Expression Term, out int ErrorIndex) { int val = 0; if (AcceptInteger(Text, ref Index, ref val, out ErrorIndex)) { Term = new ConstantExpression(val); return true; } return false; }