public synchronized boolean toggleSyntaxTree(boolean val) {
		printSyntaxTree = val;
		// Property can be set before process exists
		if (decompProcess == null) {
			return true;
		}
		String printstring = val ? "tree" : "notree";
		try {
			verifyProcess();
			decompProcess.sendCommand2Params("setAction", "", printstring, stringResponse);
			return stringResponse.toString().equals("t");
		}
		catch (IOException e) {
			// don't care
		}
		catch (DecompileException e) {
			// don't care
		}
		stopProcess();
		return false;
	}
This method toggles whether or not the decompiler
produces a syntax tree (via calls to decompileFunction).
The default is to always produce a syntax tree, but
some applications may only need C code.  Ideally this method should
be called once before the openProgram call, but it
can be used at any time, if the application wants
to change before in the middle of a sequence of
decompiles. Unless the desired value changes, the
method does NOT need to be called repeatedly. Even
after a decompiler process crash, the old value is
cached and automatically sent to the new process
@param val = true, to produce a syntax tree, false otherwise
@return true if the decompiler process, accepted the change of state
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/DecompInterface.java