예제 #1
0
        public static void AutoExecuteCode(string code)
        {
            code = CodeTranslator.TranslateCode(code);
            CODE_READER.CheckLanguageRoutines(code, 0);
            var name = CODE_READER.GetCodeDeclaration(code);
            var args = CODE_READER.GetReads(code);

            args = CorrectArgs(name, args);
            ExecuteCode(name, args);
        }
예제 #2
0
        public void AnalyzeCode()
        {
            CODE_EXEC.Fields.Clear();
            var lines = CODE_READER.GetScriptLines(CurrentCode);

            foreach (var line in lines)
            {
                var lineCode = CodeTranslator.TranslateCode(line);
                CODE_READER.CheckLanguageRoutines(lineCode, 0);
            }
        }