IronKonoha.KonohaSpace.checkNestedSyntax C# (CSharp) Méthode

checkNestedSyntax() private méthode

private checkNestedSyntax ( IList tls, int &s, int e, TokenType tt, char opench, char closech ) : bool
tls IList
s int
e int
tt TokenType
opench char
closech char
Résultat bool
        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;
        }