public static Long evaluateToLong(String input, boolean assumeHex) {
		ExpressionEvaluator evaluator = new ExpressionEvaluator(assumeHex);
		try {
			return evaluator.parseAsLong(input);
		}
		catch (ExpressionException e) {
			return null;
		}
	}
Evaluates the given input as a long value. 
@param input the expression to be parsed into a Long value
@param assumeHex if true, numbers will be assumed to be hexadecimal values.
@return the resulting Long value or null if the expression could not be evaluated.
Ghidra/Framework/Generic/src/main/java/generic/expressions/ExpressionEvaluator.java