Example #1
0
 public StatementList(Statement statement, StatementList tail)
 {
     IsEmpty = false;
     Head    = statement;
     Tail    = tail;
 }
Example #2
0
 public DeclarationClass(String name, StatementList decls)
 {
     Name       = name;
     Statements = decls;
 }
Example #3
0
 public DeclarationMethod(String name, StatementList body)
 {
     ReturnType = new TypeVoid();
     Name       = name;
     Body       = body;
 }