public Address parseAddress(String val) {
		Address addr = currentProgram.getAddressFactory().getAddress(val);
		if (addr == null) {
			throw new IllegalArgumentException("Invalid address " + val);
		}
		return addr;
	}
Parses an address from a string.

@param val The string to parse.
@return The address that was parsed from the string.
@throws IllegalArgumentException if there was a problem parsing an address from the string.
Ghidra/Features/Base/src/main/java/ghidra/app/script/GhidraScript.java