public override void CaseAProg(AProg node) { InAProg(node); if (node.GetStmts() != null) { node.GetStmts().Apply(this); } OutAProg(node); }
ArrayList New0() { ArrayList nodeList = new ArrayList(); ArrayList nodeArrayList1 = (ArrayList)Pop(); PStmts pstmtsNode2 = (PStmts)nodeArrayList1[0]; AProg pprogNode1 = new AProg( pstmtsNode2 ); nodeList.Add(pprogNode1); return(nodeList); }
public override void InAProg(AProg node) { _output.WriteLine(".assembly extern mscorlib {}"); _output.WriteLine(".assembly Test"); _output.WriteLine("{"); _output.WriteLine("\t.ver 1:0:1:0"); _output.WriteLine("}"); _output.WriteLine(".class OuterClass"); _output.WriteLine("{"); _output.WriteLine(".method static void main() cil managed"); _output.WriteLine("{"); _output.WriteLine("\t.maxstack 128"); _output.WriteLine("\t.entrypoint"); }
public virtual void OutAProg(AProg node) { DefaultOut(node); }
public virtual void InAProg(AProg node) { DefaultIn(node); }
public virtual void CaseAProg(AProg node) { DefaultCase(node); }
public override void OutAProg(AProg node) { _output.WriteLine("\tret"); _output.WriteLine("}\n}"); _output.Close(); }