Exemplo n.º 1
0
        private bool P_ArrayList(PArray arr)
        {
            if (P_Comma())
            {
                if (P_PosOrNeg(out var num))
                {
                    if (int.TryParse(num.Lex, out var lbound))
                    {
                        if (P_Dot() && P_Dot())
                        {
                            if (P_PosOrNeg(out num))
                            {
                                if (int.TryParse(num.Lex, out var rbound))
                                {
                                    arr.AddArrData(new PArray.ArrayData(lbound, rbound));
                                    return(P_ArrayList(arr));
                                }
                            }
                        }
                    }
                }
            }

            return(P_RightBracket());
        }