if (code.split("\n")[0].toLowerCase().startsWith("fsm:")) {
code = scriptCode.substring(4);
}
FSM other = new FSMScript(code).execute();
this.finalStates = other.finalStates;
this.initialState = other.initialState;
this.initialStateList = other.initialStateList;
this.output = other.output;
this.randomGen = other.randomGen;