Mercurial > hg > Applications > Grep
comparison c/regexParser/transition.h @ 141:71f36a59cf6a pairPro
add appendState
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 11 Dec 2015 13:12:42 +0900 |
parents | 84a2a5209d3a |
children | d8a4922eceae |
comparison
equal
deleted
inserted
replaced
140:84a2a5209d3a | 141:71f36a59cf6a |
---|---|
5 BitVectorPtr nextState; | 5 BitVectorPtr nextState; |
6 struct transition *next; | 6 struct transition *next; |
7 } Transition, *TransitionPtr; | 7 } Transition, *TransitionPtr; |
8 | 8 |
9 typedef struct state { | 9 typedef struct state { |
10 BitVectorPtr bitState; | |
10 TransitionPtr transition; | 11 TransitionPtr transition; |
11 struct state *next; | 12 struct state *next; |
12 } State, *StatePtr; | 13 } State, *StatePtr; |
13 | 14 |
15 StatePtr createState(BitVectorPtr bi, TransitionPtr ts, StatePtr next); | |
16 StatePtr appendState(StatePtr x, StatePtr y); | |
14 TransitionPtr createTransition(CharClassPtr cc ,BitVectorPtr state); | 17 TransitionPtr createTransition(CharClassPtr cc ,BitVectorPtr state); |
15 TransitionPtr appendTransition0(TransitionPtr curr,TransitionPtr next); | 18 TransitionPtr appendTransition0(TransitionPtr curr,TransitionPtr next); |
16 TransitionPtr appendTransition(TransitionPtr curr,TransitionPtr next); | 19 TransitionPtr appendTransition(TransitionPtr curr,TransitionPtr next); |
17 | 20 |
18 /* | 21 /* |