bool MatchTextNode(string bbCode, ref int pos, Stack<SyntaxTreeNode> stack) { int end = pos; var textNode = ParseText(bbCode, ref end); if (textNode != null) { AppendText(textNode, stack); pos = end; return true; } return false; } void AppendText(string textToAppend, Stack<SyntaxTreeNode> stack)