VPR-7.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
token.h
Go to the documentation of this file.
1 /**
2  * Jason Luu
3  * July 22, 2009
4  * Tokenizer
5  */
6 
7 #ifndef TOKEN_H
8 #define TOKEN_H
9 
20 };
21 
22 struct s_token {
24  char *data;
25 };
26 typedef struct s_token t_token;
27 
28 t_token *GetTokensFromString(INP const char* inString, OUTP int * num_tokens);
29 
30 void freeTokens(INP t_token *tokens, INP int num_tokens);
31 
32 boolean checkTokenType(INP t_token token, OUTP enum e_token_type token_type);
33 
34 void my_atof_2D(INOUTP float **matrix, INP int max_i, INP int max_j, INP char *instring);
35 
36 #endif
37 
void freeTokens(INP t_token *tokens, INP int num_tokens)
Definition: token.c:93
e_token_type
Definition: token.h:10
#define INOUTP
Definition: util.h:21
void my_atof_2D(INOUTP float **matrix, INP int max_i, INP int max_j, INP char *instring)
Definition: token.c:133
char * data
Definition: token.h:24
#define INP
Definition: util.h:19
boolean checkTokenType(INP t_token token, OUTP enum e_token_type token_type)
Definition: token.c:126
#define OUTP
Definition: util.h:20
Definition: token.h:22
enum e_token_type type
Definition: token.h:23
t_token * GetTokensFromString(INP const char *inString, OUTP int *num_tokens)
Definition: token.c:18