VPR-7.0
Main Page
Data Structures
Files
File List
Globals
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
10
enum
e_token_type
{
11
TOKEN_NULL
,
12
TOKEN_STRING
,
13
TOKEN_INT
,
14
TOKEN_OPEN_SQUARE_BRACKET
,
15
TOKEN_CLOSE_SQUARE_BRACKET
,
16
TOKEN_OPEN_SQUIG_BRACKET
,
17
TOKEN_CLOSE_SQUIG_BRACKET
,
18
TOKEN_COLON
,
19
TOKEN_DOT
20
};
21
22
struct
s_token
{
23
enum
e_token_type
type
;
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
freeTokens
void freeTokens(INP t_token *tokens, INP int num_tokens)
Definition:
token.c:93
TOKEN_OPEN_SQUARE_BRACKET
Definition:
token.h:14
e_token_type
e_token_type
Definition:
token.h:10
INOUTP
#define INOUTP
Definition:
util.h:21
TOKEN_DOT
Definition:
token.h:19
TOKEN_INT
Definition:
token.h:13
my_atof_2D
void my_atof_2D(INOUTP float **matrix, INP int max_i, INP int max_j, INP char *instring)
Definition:
token.c:133
TOKEN_OPEN_SQUIG_BRACKET
Definition:
token.h:16
s_token::data
char * data
Definition:
token.h:24
INP
#define INP
Definition:
util.h:19
TOKEN_NULL
Definition:
token.h:11
checkTokenType
boolean checkTokenType(INP t_token token, OUTP enum e_token_type token_type)
Definition:
token.c:126
TOKEN_CLOSE_SQUARE_BRACKET
Definition:
token.h:15
TOKEN_CLOSE_SQUIG_BRACKET
Definition:
token.h:17
OUTP
#define OUTP
Definition:
util.h:20
s_token
Definition:
token.h:22
s_token::type
enum e_token_type type
Definition:
token.h:23
TOKEN_STRING
Definition:
token.h:12
GetTokensFromString
t_token * GetTokensFromString(INP const char *inString, OUTP int *num_tokens)
Definition:
token.c:18
TOKEN_COLON
Definition:
token.h:18
vpr
SRC
util
token.h
Generated on Mon Dec 15 2014 11:07:38 for VPR-7.0 by
1.8.6