00001 #ifndef __PARSER_H
00002 #define __PARSER_H
00003
00004 #include <string.h>
00005 #include <stdio.h>
00006 #include <stdlib.h>
00007 #include <expat.h>
00008 #include <ctype.h>
00009 #include <math.h>
00010 #include "structs.h"
00011
00012
00013
00014 typedef enum __State {
00015 start, prehost, hostdec, preplace, placement, prelay, layout, preend, end,
00016
00017 resources,
00018 filter,
00019 stream, fromto, tostream,
00020 error, parseerror
00021 } State;
00022
00023
00024
00025 int readConfig(char *fileName, Layout *layout);
00026 #endif