Esempio n. 1
0
        private void _runParser(string program)
        {
            sw = new StringWriter();
            Console.SetOut(sw);

            main = new LolCodeBlock();
            tokens = new SlkToken(program, log);
            error = new SlkError(tokens, log);
            action = new SlkAction(tokens, main);
            SlkParser.parse(0, action, tokens, error, log, SlkConstants.NT_LOLCODE_);

            main.Run();
        }