forked from SarthakShah001/Compiler2K23
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintermediateCodeGen.h
More file actions
30 lines (23 loc) · 781 Bytes
/
intermediateCodeGen.h
File metadata and controls
30 lines (23 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
***** Group No. - 9 *****
Name : Sarthak Shah ID : 2020A7PS0092P
Name : Siddharth Khandelwal ID : 2020A7PS0098P
Name : Archaj Jain ID : 2020A7PS0072P
Name : BhanuPratap Singh Rathore ID : 2020A7PS1675P
Name : Rishi Rakesh Shrivastava ID : 2020A7PS0108P
*/
#ifndef _intermediateCodeGen_
#define _intermediateCodeGen_
#include "intermediateCodeGenDef.h"
#include "symbol_table.h"
#include "parseTree.h"
// new label func
// emit function
//
extern char *operator_string[];
void printQuadruple(qNode q);
qNode createQuadruple();
qNode generateIR(qNode curr ,parseTreeNode root, symbol_table st, int childcount) ;
char* addTemporary();
char* newLabel();
#endif