-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathparser.h
More file actions
executable file
·28 lines (24 loc) · 778 Bytes
/
Copy pathparser.h
File metadata and controls
executable file
·28 lines (24 loc) · 778 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
#ifndef __PARSER_H
#define __PARSER_H
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <expat.h>
#include <ctype.h>
#include <math.h>
#include "structs.h"
// Check doc/diagramaEstadosParserDS.dia for states
// parseerror comes from EXPAT syntax error, error means DS syntax error, like invalid tag
typedef enum __State {
start, prehost, hostdec, preplace, placement, prelay, layout, preend, end, //estados principais
//host states
resources,
filter, //placement states
stream, fromto, tostream, //layout states
error, parseerror, //error states
matLab, matLabFilter, matLabFunction,
matLabFunctionArg, preMatLab // matLab states
} State;
/// reads a xml, fill the layout passed as argument
int readConfig(char *fileName, Layout *layout);
#endif