-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAST.h
More file actions
19 lines (17 loc) · 656 Bytes
/
AST.h
File metadata and controls
19 lines (17 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// GROUP 39
// AKANKSHYA MISHRA 2016A7PS0026P
// NARAPAREDDY BHAVANA 2016A7PS0034P
// KARABEE BATTA 2016A7PS0052P
// AASTHA KATARIA 2016A7PS0062P
#include "ASTDef.h"
//High-level functions needed for abstract syntax tree generation:
ASTNodeIt* makeAbstractSyntaxTree(treeNodeIt *root);
//Auxiliary functions:
ASTNodeIt* newNonLeafNode (TAG taginf, tokenInfo *ti, ASTNodeIt* input1, ASTNodeIt* input2);
ASTNodeIt* ChildrenList (ASTNodeIt* input1, ASTNodeIt* input2);
ASTNodeIt* newLeafNode(tokenInfo *ti);
void freeChildren(treeNodeIt *temp);
void printAST(ASTNodeIt* root);
char *TagString(int index);
size_t printASTNodes(ASTNodeIt *root);
//Nochestrell