view c/regexParser/regexParser.h @ 112:ec485345daf9 pairPro

some function use static
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Mon, 23 Nov 2015 15:54:19 +0900
parents 1d30f70702df
children ca30f8334741
line wrap: on
line source

typedef struct charClass {
    unsigned char type;
    union condition  {
        struct utf8Range {
            unsigned char *begin;
            unsigned char *end;
            struct utf8Range *next;
        } rangeList;
        unsigned char character;
        WordPtr w;
    } *conditionList;
    struct charClass *next;
} CharClass, *CharClassPtr;

typedef struct word {
    unsigned char *word;
    long length;
} Word, *WordPtr;

typedef struct node {
    unsigned char tokenType;
    unsigned long nodeNumber;
    CharClassPtr cc;
    struct node *left;
    struct node *right;
} Node, *NodePtr;