Пример #1
0
        //<var-def-list>//
        public Node VarDefList()
        {
            var nvardeflist = new VarDefList();

            while (firstOfDeclaration.Contains(CurrentToken))
            {
                nvardeflist.Add(VarDef());
            }
            return(nvardeflist);
        }
Пример #2
0
        public Node VarDefList()
        {
            var result = new VarDefList();

            while (CurrentToken == TokenCategory.VAR)
            {
                result.Add(VarDef());
            }
            return(result);
        }
Пример #3
0
        public Node VarDefList()
        {
            var n = new VarDefList();

            while (CurrentToken == TokenCategory.VAR)
            {
                n.Add(VarDef());
            }
            return(n);
        }