Generator Common.h
Generator Common.h
* common.h
*
* Created on: Oct 23, 2010
* Author: farhanhubble
*/
#ifndef COMMON_H_
#define COMMON_H_ 1
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<assert.h>
#include<stdbool.h>
#endif /* COMMON_H_ */
struct prodList{ /* Structure for storing all productions of a symbol */
char *head;
char **productions;
char **first;
char *follow;
_Bool nullable;
int prodcount;
};
struct parseinfo{
int varcount;
int termcount;
char **variables;
char **terminals;
char ***actions;
};