}// 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"); } }
static void Main(string[] args) { FirstArray newarr = new FirstArray(); newarr.GetTreatedArray(new int[] { 3, 56, 2, 10, 55, 6 }, 1); }