Esempio n. 1
0
        public void ParsingHandler(byte[] bytes, string[] script)
        {
            variables.Clear();
            p = new xPacket(bytes);
            string result;
            bool   error = false;

            try
            {
                result = Parse(script, 0, script.Length - 1);
            }
            catch (Exception ex)
            {
                error  = true;
                result = ex.ToString();
            }
            Window.InvokeIfRequired(Window.Get.rtbxProcess, () => {
                Window.Get.rtbxProcess.Text = result;
            });
            // Add all variables to a viewer
            if (!error)
            {
                ShowVariables();
            }
        }
Esempio n. 2
0
 public Engine()
 {
     variables = new Dictionary <string, Variable>();
     p         = null;
 }