Mercurial > hg > Applications > Grep
comparison regexParser/transition.h @ 178:5e8c6857934c pairPro
implement charClassMerge
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 23 Dec 2015 19:17:36 +0900 |
parents | 8de9a33f6ae5 |
children | d97bcab546e8 |
comparison
equal
deleted
inserted
replaced
177:8de9a33f6ae5 | 178:5e8c6857934c |
---|---|
1 #include "bitVector.h" | 1 #include "bitVector.h" |
2 | |
3 typedef struct transition { | |
4 CharClassPtr condition; | |
5 struct transition *next; | |
6 } Transition, *TransitionPtr; | |
7 | 2 |
8 typedef struct state { | 3 typedef struct state { |
9 BitVector bitState; | 4 BitVector bitState; |
10 TransitionPtr transition; | 5 CharClassPtr cc; |
11 NodePtr nextNode; | 6 NodePtr node; |
12 struct state *next; | 7 struct state *next; |
13 } State, *StatePtr; | 8 } State, *StatePtr; |
14 | 9 |
15 StatePtr createState(BitVector bi); | 10 StatePtr createState(BitVector bi); |
16 StatePtr appendState(StatePtr x,StatePtr y); | 11 StatePtr appendState(StatePtr x,StatePtr y); |