parser: treat comma as a delimiter
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
#define GBASM_MAX_TOKENS (GBASM_MAX_OPERANDS + 1) /* One for opcode */
|
#define GBASM_MAX_TOKENS (GBASM_MAX_OPERANDS + 1) /* One for opcode */
|
||||||
#define GBASM_LINE_DELIMS "\n"
|
#define GBASM_LINE_DELIMS "\n"
|
||||||
#define GBASM_COMMENT_DELIMS ";"
|
#define GBASM_COMMENT_DELIMS ";"
|
||||||
#define GBASM_WHITESPACE_DELIMS " \t"
|
#define GBASM_WHITESPACE_DELIMS " \t,"
|
||||||
|
|
||||||
/* Returns the number of tokens in the line */
|
/* Returns the number of tokens in the line */
|
||||||
static int gbasm_tokenize_line(char *line,
|
static int gbasm_tokenize_line(char *line,
|
||||||
|
|||||||
Reference in New Issue
Block a user