Mercurial > hg > Members > masakoha > testcode
view c/regexParser/regexParser.h @ 128:f827682d4687 pairPro
fix
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 01 Dec 2015 22:50:58 +0900 |
parents | 639b0b437ebf |
children | b930be74a16e |
line wrap: on
line source
#include "word.h" #include "error.h" #define NEW(type) (type*)malloc(sizeof(type)) typedef struct utf8Range { unsigned char *begin; unsigned char *end; struct utf8Range *next; } RangeList , *RangeListPtr; typedef union condition { RangeListPtr range; unsigned char character; WordPtr w; } Condition, *ConditionList; typedef struct charClass { unsigned char type; ConditionList cond; struct charClass *left; struct charClass *right; unsigned char begin; unsigned char end; } CharClass, *CharClassPtr; typedef struct node { unsigned char tokenType; unsigned long nodeNumber; CharClassPtr cc; struct node *left; struct node *right; } Node, *NodePtr; typedef struct regexInfo { unsigned char *ptr; unsigned char tokenType; unsigned char *tokenValue; int nodeNumber; } RegexInfo, *RegexInfoPtr;