public void GenerateOutput() { var index = CurrentStack.Count; while (index > 0 && !(CurrentStack[index - 1] is Mark)) { index--; } for (; index < CurrentStack.Count; index++) { _output.Append(ScliptingUtil.ToString(CurrentStack[index])); } }