Olaf Seibert 435cdb0b7f Separate out the string parsing for .include/.library file names and macro arguments.
They behave observably different from generic string parsing and trying
to account for them generically just gets in the way.
.rept is treated the same as a macro.
2015-05-22 16:36:16 +02:00

64 lines
1.1 KiB
C

#ifndef PARSE__H
#define PARSE__H
#include "symbols.h"
#include "assemble_aux.h" /* ADDR_MODE */
// is char 'c' part of a symbol?
#define issym(c) (isalpha(c) || isdigit(c) \
|| (c) == '.' || (c) == '$' \
|| (symbol_allow_underscores && (c) == '_'))
char *skipwhite(
char *cp);
char *skipdelim(
char *cp);
char *skipdelim_comma(
char *cp,
int *comma);
SYMBOL *get_op(
char *cp,
char **endp);
char *getstring(
char *cp,
char **endp);
char *getstring_fn(
char *cp,
char **endp);
char *get_symbol(
char *cp,
char **endp,
int *islocal);
int get_mode(
char *cp,
char **endp,
ADDR_MODE *mode);
EX_TREE *parse_expr(
char *cp,
int undef);
EX_TREE *parse_unary_expr(
char *cp,
int undef);
int parse_float(
char *cp,
char **endp,
int size,
unsigned *flt);
int brackrange(
char *cp,
int *start,
int *length,
char **endp);
#endif