comparison c/regexParser/regexParser.h @ 142:de0f332d560c pairPro

insert charClassMerge function
author masa
date Fri, 11 Dec 2015 14:54:00 +0900
parents ccc673449351
children d8a4922eceae
comparison
equal deleted inserted replaced
141:71f36a59cf6a 142:de0f332d560c
6 unsigned char *word; 6 unsigned char *word;
7 int length; 7 int length;
8 } Word, *WordPtr; 8 } Word, *WordPtr;
9 9
10 typedef struct utf8Range { 10 typedef struct utf8Range {
11 unsigned char *begin; 11 unsigned long begin;
12 unsigned char *end; 12 unsigned long end;
13 struct utf8Range *next; 13 struct utf8Range *next; // only used in the parser.
14 } RangeList , *RangeListPtr; 14 } RangeList , *RangeListPtr;
15 15
16 typedef union condition { 16 typedef union condition {
17 RangeListPtr range; 17 RangeList range;
18 WordPtr w; 18 Word w;
19 } Condition, *ConditionList; 19 } Condition, *ConditionList;
20 20
21 typedef struct charClass { 21 typedef struct charClass {
22 unsigned char type; 22 unsigned char type;
23 ConditionList cond;
24 struct charClass *left; 23 struct charClass *left;
25 struct charClass *right; 24 struct charClass *right;
26 unsigned char begin; 25 Condition cond;
27 unsigned char end; 26 BitVector nextState;
28 } CharClass, *CharClassPtr; 27 } CharClass, *CharClassPtr;
29 28
30 typedef struct node { 29 typedef struct node {
31 unsigned char tokenType; 30 unsigned char tokenType;
32 unsigned long nodeNumber; 31 unsigned long nodeNumber;