public static Address evaluate(Program p, Address baseAddr, String inputExpression) {
		AddressEvaluator evaluator = new AddressEvaluator(p, true);
		try {
			return evaluator.parseAsRelativeAddress(inputExpression, baseAddr);
		}
		catch (ExpressionException e) {
			return null;
		}
	}
Gets a valid address for the specified program as indicated by the input expression.
@param p the program to use for determining the address.
@param baseAddr the base address to use for relative addressing.
@param inputExpression string representation of the address desired.
@return the address. Otherwise, return null if the string fails to evaluate
to a unique legitimate address.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/AddressEvaluator.java