summaryrefslogtreecommitdiff
path: root/lib/parser.c
diff options
context:
space:
mode:
authorPixel <>2001-04-15 01:15:02 +0000
committerPixel <>2001-04-15 01:15:02 +0000
commit1d2c4bd4e380395c68151d40239d1539d39fdd91 (patch)
tree5d257d14007c3a67ac716c01c8334878483c3697 /lib/parser.c
parenta984cf3f28d3a5935c84f96f6da3bc7bd39a9ff1 (diff)
Assembleur
Diffstat (limited to 'lib/parser.c')
-rw-r--r--lib/parser.c3
1 files changed, 2 insertions, 1 deletions
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;