Beispiel #1
0
 public override void CaseADeclarestmt(ADeclarestmt node)
 {
     InADeclarestmt(node);
     if (node.GetEol() != null)
     {
         node.GetEol().Apply(this);
     }
     if (node.GetVarname() != null)
     {
         node.GetVarname().Apply(this);
     }
     if (node.GetTypename() != null)
     {
         node.GetTypename().Apply(this);
     }
     OutADeclarestmt(node);
 }
Beispiel #2
0
 public override void InADeclarestmt(ADeclarestmt node)
 {
     _output.Write("\t.locals init(");
     _output.WriteLine(node.GetTypename().Text + "32 " + node.GetVarname().Text + ")");
 }