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(); }
internal SlkError(SlkToken tokens, SlkLog log) { _log = log; _tokens = tokens; }