public void LoadString(string input) { if (State != ScriptState.Empty) { throw new Exception("Cannot load over a loaded script, use 'Clear' before."); } State = ScriptState.NotInitialized; Visitor = new MurMurVisitor(this); AppendString(input); }
public void LoadFile(string path) { if (State != ScriptState.Empty) { throw new Exception("Cannot load over a loaded script, use 'Clear' before."); } State = ScriptState.NotInitialized; Visitor = new MurMurVisitor(this); Path = path; AppendFile(path); }