regc_lex.c File Reference

Go to the source code of this file.

Defines

#define ATEOS()   (v->now >= v->stop)
#define HAVE(n)   (v->stop - v->now >= (n))
#define NEXT1(c)   (!ATEOS() && *v->now == CHR(c))
#define NEXT2(a, b)   (HAVE(2) && *v->now == CHR(a) && *(v->now+1) == CHR(b))
#define NEXT3(a, b, c)
#define SET(c)   (v->nexttype = (c))
#define SETV(c, n)   (v->nexttype = (c), v->nextvalue = (n))
#define RET(c)   return (SET(c), 1)
#define RETV(c, n)   return (SETV(c, n), 1)
#define FAILW(e)   return (ERR(e), 0)
#define LASTTYPE(t)   (v->lasttype == (t))
#define L_ERE   1
#define L_BRE   2
#define L_Q   3
#define L_EBND   4
#define L_BBND   5
#define L_BRACK   6
#define L_CEL   7
#define L_ECL   8
#define L_CCL   9
#define INTOCON(c)   (v->lexcon = (c))
#define INCON(con)   (v->lexcon == (con))
#define ENDOF(array)   ((array) + sizeof(array)/sizeof(chr))


Define Documentation

 
#define ATEOS (  )     (v->now >= v->stop)

Definition at line 33 of file regc_lex.c.

#define ENDOF ( array   )     ((array) + sizeof(array)/sizeof(chr))

Definition at line 62 of file regc_lex.c.

#define FAILW (  )     return (ERR(e), 0)

Definition at line 45 of file regc_lex.c.

#define HAVE (  )     (v->stop - v->now >= (n))

Definition at line 34 of file regc_lex.c.

#define INCON ( con   )     (v->lexcon == (con))

Definition at line 59 of file regc_lex.c.

#define INTOCON (  )     (v->lexcon = (c))

Definition at line 58 of file regc_lex.c.

#define L_BBND   5

Definition at line 53 of file regc_lex.c.

#define L_BRACK   6

Definition at line 54 of file regc_lex.c.

#define L_BRE   2

Definition at line 50 of file regc_lex.c.

#define L_CCL   9

Definition at line 57 of file regc_lex.c.

#define L_CEL   7

Definition at line 55 of file regc_lex.c.

#define L_EBND   4

Definition at line 52 of file regc_lex.c.

#define L_ECL   8

Definition at line 56 of file regc_lex.c.

#define L_ERE   1

Definition at line 49 of file regc_lex.c.

#define L_Q   3

Definition at line 51 of file regc_lex.c.

#define LASTTYPE (  )     (v->lasttype == (t))

Definition at line 46 of file regc_lex.c.

#define NEXT1 (  )     (!ATEOS() && *v->now == CHR(c))

Definition at line 35 of file regc_lex.c.

#define NEXT2 ( a,
 )     (HAVE(2) && *v->now == CHR(a) && *(v->now+1) == CHR(b))

Definition at line 36 of file regc_lex.c.

#define NEXT3 ( a,
b,
 ) 

Value:

(HAVE(3) && *v->now == CHR(a) && \
                *(v->now+1) == CHR(b) && \
                *(v->now+2) == CHR(c))

Definition at line 37 of file regc_lex.c.

#define RET (  )     return (SET(c), 1)

Definition at line 43 of file regc_lex.c.

#define RETV ( c,
 )     return (SETV(c, n), 1)

Definition at line 44 of file regc_lex.c.

#define SET (  )     (v->nexttype = (c))

Definition at line 41 of file regc_lex.c.

#define SETV ( c,
 )     (v->nexttype = (c), v->nextvalue = (n))

Definition at line 42 of file regc_lex.c.



Generated on Wed Mar 12 12:18:27 2008 by  doxygen 1.5.1