Esempio n. 1
0
    }// OneParam

    static void Array(IntSet followers)
    {
        //Array = "[" [ number ] "]" .
        if (FirstArray.Contains(sym.kind))
        {
            Accept(lBracketSym, "[ expected");
            if (numSym == sym.kind)
            {
                Accept(numSym, "number expected");
            }
            Accept(rBracketSym, "] expected");
        }
        else
        {
            ReportError("Error in Production Rule: Array");
        }
    }
Esempio n. 2
0
        static void Main(string[] args)
        {
            FirstArray newarr = new FirstArray();

            newarr.GetTreatedArray(new int[] { 3, 56, 2, 10, 55, 6 }, 1);
        }