forked from varnamproject/libvarnam
-
Notifications
You must be signed in to change notification settings - Fork 1
/
token.h
56 lines (45 loc) · 1.23 KB
/
token.h
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* <file-name>
*
* Copyright (C) Navaneeth.K.N
*
* This is part of libvarnam. See LICENSE.txt for the license
*/
#ifndef VARNAM_TOKEN_H_INCLUDED_090112
#define VARNAM_TOKEN_H_INCLUDED_090112
#include "vtypes.h"
#include "varray.h"
struct token*
token_new();
void
initialize_token (vtoken *tok,
int id,
int type,
int match_type,
const char* pattern,
const char* value1,
const char* value2,
const char* value3,
const char* tag,
int priority,
int accept_condition,
int flags);
struct token*
Token(int id, int type, int match_type, const char* pattern, const char* value1, const char* value2, const char* value3, const char* tag, int priority, int accept_condition, int flags);
struct token*
get_pooled_token (
varnam *handle,
int id,
int type,
int match_type,
const char* pattern,
const char* value1,
const char* value2,
const char* value3,
const char* tag,
int priority,
int accept_condition, int flags);
varray*
product_tokens(varnam *handle, varray *tokens);
void
destroy_token(void *token);
#endif