6502/vasm/syntax/test/syntax.h

12 lines
427 B
C

/* syntax.h syntax header file for vasm */
/* (c) in 2002 by Volker Barthelmann */
/* macros to recognize identifiers */
#define ISIDSTART(x) ((x)=='.'||(x)=='_'||isalpha((unsigned char)(x)))
#define ISIDCHAR(x) ((x)=='.'||(x)=='_'||isalnum((unsigned char)(x)))
#define ISBADID(p,l) ((l)==1&&(*(p)=='.'||*(p)=='_'))
#define ISEOL(p) (*(p)=='\0'||*(p)==commentchar)
/* result of a boolean operation */
#define BOOLEAN(x) (x)