static private ParseTreeElement parseArray(string innerText) { ArrayParseTreeElement resultTreeElement; IList <string> splitedTokenStrings; IList <ParseTreeElement> splitedTokens; innerText = innerText.Trim(); resultTreeElement = new ArrayParseTreeElement(); splitedTokens = new List <ParseTreeElement>(); splitedTokenStrings = splitAfterTokens(innerText); foreach (string iterationTokenString in splitedTokenStrings) { splitedTokens.Add(parseRecursive(iterationTokenString)); } resultTreeElement.children = splitedTokens; return(resultTreeElement); }
private static ParseTreeElement parseArray(string innerText) { ArrayParseTreeElement resultTreeElement; List<string> splitedTokenStrings; List<ParseTreeElement> splitedTokens; innerText = innerText.Trim(); resultTreeElement = new ArrayParseTreeElement(); splitedTokens = new List<ParseTreeElement>(); splitedTokenStrings = splitAfterTokens(innerText); foreach (string iterationTokenString in splitedTokenStrings) { splitedTokens.Add(parseRecursive(iterationTokenString)); } resultTreeElement.childrens = splitedTokens; return resultTreeElement; }