Esempio n. 1
0
        public int Start()
        {
            _strTok   = new StringTokenizer(_sourceCode);
            _analyzer = new Analyzer(_strTok, this);
            _tree     = _analyzer.ParseBody();

            if (_syntaxErrors.Count >= 1)
            {
                return(-1);
            }
            else
            {
                _pec  = new PreExecutionContext(this);
                _code = _pec.PreExecut(_tree);

                _ctx = new ExecutionContext(_code, this);
                return(0);
            }
        }