private bool checkNestedSyntax(IList<Token> tls, ref int s, int e, TokenType tt, char opench, char closech)
{
int i = s;
Token tk = tls[i];
string t = tk.Text;
if (t[0] == opench && t.Length == 1)
{
int ne = findTopCh(tls, i + 1, e, tk.Type, closech);
tk.Type = tt;
tk.Keyword = (KeywordType)tt;
List<Token> sub;
//tk->topch = opench; tk.losech = closech;
makeSyntaxRule(tls, i + 1, ne, out sub);
tk.Sub = sub;
s = ne;
return true;
}
return false;
}