Created
April 5, 2017 10:54
-
-
Save saevarb/92ff32bf4b18bec3b4d870499346e7ee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void prettyDeclList(DeclList* declList) { | |
return; | |
} | |
void prettyStaList(DeclList* staListj) { | |
Decl* ptr = staList->head; | |
while(ptr != NULL) { | |
prettyStatement(ptr->current); | |
ptr = ptr->next; | |
} | |
} | |
void prettyStatement(Stmt* stmt) { | |
switch (stmt->type) { | |
case RETURN: | |
... | |
case ASSIGN: | |
... | |
} | |
} | |
void prettyBody(Body* body) { | |
prettyDeclList(body->staList); | |
prettyStaList(body->declList); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment