-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathparser.h
More file actions
33 lines (20 loc) · 761 Bytes
/
parser.h
File metadata and controls
33 lines (20 loc) · 761 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
31
32
33
/*
Batch No: 47
Gyanendra Mishra 2013A7PS126P
Prabhjyot Singh Sodhi 2013A7PS151P
Filename:parser.h
*/
// parser.h : Contains function prototype declarations of functions in parser.c
#ifndef PARSER_H_INCLUDED
#define PARSER_H_INCLUDED
#include "parserDef.h"
#include <stdio.h>
// void createParseTable(grammar G, table T): This function takes as input the grammar G,
// uses FIRST and FOLLOW information to populate the table T appropriately.
void createParseTable(FILE* G, table T);
parseTree parseInputSourceCode(char *testcaseFile, table T);
void printParseTree(parseTree PT, char *outfile);
void intializeTable(table T);
int printParseTree_r(parseTree curr, FILE* f, int * size, int print);
int error_in_parsing;
#endif