public AssemblyParseMachine copy() {
		AssemblyParseMachine c = new AssemblyParseMachine(parser, buffer, pos, lastTok, symbols);
		// leave labels copied by reference

		c.output.clear();
		c.output.addAll(output);

		c.stack.clear();
		c.stack.addAll(stack);

		c.treeStack.clear();
		c.treeStack.addAll(treeStack);

		c.accepted = accepted;
		c.error = error;

		DBG.println("Copied " + id + " to " + c.id);
		return c;
	}
Duplicate this machine state

<p>
This is used extensively when branching

@return the duplicate
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/assembler/sleigh/parse/AssemblyParseMachine.java