From 1d2c4bd4e380395c68151d40239d1539d39fdd91 Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Sun, 15 Apr 2001 01:15:02 +0000 Subject: Assembleur --- lib/parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/parser.c') diff --git a/lib/parser.c b/lib/parser.c index 2a9edd1..47cae8d 100644 --- a/lib/parser.c +++ b/lib/parser.c @@ -35,6 +35,7 @@ static operator_t operators[] = { {'-', 2, OP_MOINS}, {'*', 3, OP_MUL}, {'/', 3, OP_DIV}, + {'%', 3, OP_MOD}, {'+' + 128, 4, OP_PLUS_UNARY}, {'-' + 128, 4, OP_MOINS_UNARY}, {'(', 5, OP_FUNC_CALL}, @@ -268,7 +269,7 @@ void parse_line(char *line) } } else if (((buffer[0] >= 'A') && (buffer[0] <= 'Z')) || ((buffer[0] >= 'a') && (buffer[0] <= 'z')) || ((buffer[0] >= '0') && (buffer[0] <= '9')) || (buffer[0] == '_') || (buffer[0] == '"') - || (buffer[0] == '\'')) { + || (buffer[0] == '\'') || (buffer[0] == '.') || (buffer[0] == '#')) { /* Dans tous les autres cas, on a reçu un symbole, on le pose sur la pile */ push_pile(buffer); got_unary = 0; -- cgit v1.2.3