view c/regexParser/regexParser.h @ 118:31b0ba0050fa testcode

text
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Thu, 26 Nov 2015 17:19:00 +0900
parents 66c633575b53
children 188d866227a4
line wrap: on
line source

#include "word.h"
#include "error.h"
typedef union condition {
    struct utf8Range {
        unsigned char *begin;
        unsigned char *end;
        struct utf8Range *next;
    } rangeList;
    unsigned char character;
    WordPtr w;
} Condition, *ConditionList;

typedef struct charClass {
    unsigned char type;
    ConditionList cond;
    struct charClass *left;
    struct charClass *right;
    unsigned long *begin;
    unsigned long *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;