Mercurial > hg > Applications > Grep
diff c/regexParser/regexParser.h @ 115:ca30f8334741 pairPro
rename createRegexParser.cc to regexParser.cc
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 24 Nov 2015 14:38:26 +0900 |
parents | 1d30f70702df |
children | 66c633575b53 |
line wrap: on
line diff
--- a/c/regexParser/regexParser.h Mon Nov 23 19:19:43 2015 +0900 +++ b/c/regexParser/regexParser.h Tue Nov 24 14:38:26 2015 +0900 @@ -1,3 +1,8 @@ +typedef struct word { + unsigned char *word; + long length; +} Word, *WordPtr; + typedef struct charClass { unsigned char type; union condition { @@ -9,14 +14,12 @@ unsigned char character; WordPtr w; } *conditionList; - struct charClass *next; + struct charClass *left; + struct charClass *right; + unsigned long *begin; + unsigned long *end; } CharClass, *CharClassPtr; -typedef struct word { - unsigned char *word; - long length; -} Word, *WordPtr; - typedef struct node { unsigned char tokenType; unsigned long nodeNumber;