6502/vasm/syntax/oldstyle/syntax.h

32 lines
939 B
C

/* syntax.h syntax header file for vasm */
/* (c) in 2002,2012,2014,2017 by Frank Wille */
/* macros to recognize identifiers */
#define ISIDSTART(x) ((x)=='.'||(x)=='_'||isalpha((unsigned char)(x)))
#define ISIDCHAR(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)
/* we have a special skip() function for expressions, called exp_skip() */
char *exp_skip(char *);
#define EXPSKIP() s=exp_skip(s)
/* operator separation characters */
#ifndef OPERSEP_COMMA
#define OPERSEP_COMMA 1
#endif
#ifndef OPERSEP_BLANK
#define OPERSEP_BLANK 0
#endif
/* symbol which contains the current rept-endr iteration count */
#define REPTNSYM "__RPTCNT"
/* overwrite macro defaults */
#define MAXMACPARAMS 35
char *my_skip_macro_arg(char *);
#define SKIP_MACRO_ARGNAME(p) my_skip_macro_arg(p)