コード例 #1
0
        public Object genLispCodeTree(string lispCode)
        {
            Object codeTree = null;

            try
            {
                StringReader stringCodeReader = new System.IO.StringReader(lispCode);
                codeTree = taskInterperter.Read("enqueueLispEvent", stringCodeReader, DLRConsole.DebugWriteLine);
                if (taskInterperter.Eof(codeTree))
                {
                    return(null);
                }
            }
            catch (Exception e)
            {
                DLRConsole.DebugWriteLine(lispCode + " -> " + e);
                return(null);
            }
            return(codeTree);
        }