Ejemplo n.º 1
0
 public override void OutALocalLvalue(ALocalLvalue node)
 {
     if (folding)
     {
         AALocalDecl local = data.LocalLinks[node];
         if (local.GetConst() == null)
         {
             if (!isANewExp)
             {
                 errors.Add(
                     new ErrorCollection.Error(node.GetName(),
                                               LocRM.GetString("ErrorText61"),
                                               false), true);
                 throw new ParserException(null, null);
             }
         }
         if (local.GetInit() == null)//An error will be given earlier
         {
             throw new ParserException(null, null);
         }
         local.GetInit().Apply(this);
     }
 }
Ejemplo n.º 2
0
 public override void OutALocalLvalue(ALocalLvalue node)
 {
     if (folding)
     {
         AALocalDecl local = data.LocalLinks[node];
         if (local.GetConst() == null)
         {
             if (!isANewExp)
             {
                 errors.Add(
                     new ErrorCollection.Error(node.GetName(),
                                               "Dimensions of array types must be constant expressions.",
                                               false), true);
                 throw new ParserException(null, null);
             }
         }
         if (local.GetInit() == null)//An error will be given earlier
         {
             throw new ParserException(null, null);
         }
         local.GetInit().Apply(this);
     }
 }
Ejemplo n.º 3
0
 public override void OutALocalLvalue(ALocalLvalue node)
 {
     node.GetName().Text = finalTrans.data.LocalLinks[node].GetName().Text;
 }