Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }