Esempio n. 1
0
 void CommonNegativeExpression(FunctionCallPart part)
 {
     if (la.kind == 12)
     {
         Get();
         part.AppendIdentifier(t);
     }
     if (la.kind == 2 || la.kind == 3)
     {
         if (la.kind == 2)
         {
             Get();
         }
         else
         {
             Get();
         }
         part.AppendIdentifier(t);
     }
     else if (la.kind == 1 || la.kind == 53)
     {
         CommonIdentifierList(part);
     }
     else
     {
         SynErr(62);
     }
 }
Esempio n. 2
0
 void CommonNameReference(FunctionCallPart part)
 {
     if (la.kind == 1)
     {
         CommonFunctionCall(part);
     }
     else if (la.kind == 53)
     {
         CommonArrayExpression(part);
     }
     else
     {
         SynErr(63);
     }
     if (la.kind == 7)
     {
         Get();
         part.AppendIdentifier(t); part.SetEndPoint(t, false);
         if (StartOf(4))
         {
             CommonExpression(part);
             part.SetEndPoint(t, false);
         }
         Expect(8);
         part.AppendIdentifier(t); part.SetEndPoint(t, false);
         while (la.kind == 7)
         {
             Get();
             part.AppendIdentifier(t); part.SetEndPoint(t, false);
             if (StartOf(4))
             {
                 CommonExpression(part);
                 part.SetEndPoint(t, false);
             }
             Expect(8);
             part.AppendIdentifier(t); part.SetEndPoint(t, false);
         }
     }
 }