User:Antigng-bot/regex/regexFrontEnd.h
外观
#define T_Regex_Ch 0
#define T_Regex_Gen 1
#define T_Regex_Range 2
#define T_Regex_Uni_OP 3
#define T_Regex_Bi_OP 4
#define T_Regex_Bra 5
#define T_Regex_Ket 6
#define T_Regex_EOL -1
#ifndef _rangeValue
struct _rangeValue
{
int count;
struct _rangeValuePairs
{
unsigned int start;
unsigned int end;
} pairs[64];
};
#endif
#ifndef _regexToken
struct _regexToken
{
int type;
union _valueComb
{
unsigned int ch;
struct _rangeValue range;
} value;
};
#endif
int regexPatternLexer(const unsigned int *regexPattern);