view c/regexParser/regexParser.h @ 111:1d30f70702df pairPro

add determinize.cc and transition.cc
author masa
date Sat, 21 Nov 2015 18:04:25 +0900
parents a3adc5c24e19
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;