コード例 #1
0
 void TableConstructor(out Operand st)
 {
     st = null;
     Expect(34);
     if (StartOf(4))
     {
         FieldList(out st);
     }
     Expect(50);
     if (st == null)
     {
         st = new ListOfOperandsCtor();
     }
 }
コード例 #2
0
    void FieldList(out Operand st)
    {
        Operand st1, st2; List <Operand> ops1 = new List <Operand>(); List <Operand> ops2 = new List <Operand>();

        Field(out st1, out st2);
        ops1.Add(st1); ops2.Add(st2);
        while (la.kind == 25 || la.kind == 53)
        {
            FieldSep();
            Field(out st1, out st2);
            ops1.Add(st1); ops2.Add(st2);
        }
        if (la.kind == 25 || la.kind == 53)
        {
            FieldSep();
        }
        st = new ListOfOperandsCtor(ops1, ops2);
    }