parser: treat comma as a delimiter

This commit is contained in:
2017-05-20 18:58:59 -07:00
parent bc3d54edbc
commit e64d59c793

View File

@@ -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,