summaryrefslogtreecommitdiff
path: root/lexer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lexer.c')
-rw-r--r--lexer.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/lexer.c b/lexer.c
index ff63bff..19fb41b 100644
--- a/lexer.c
+++ b/lexer.c
@@ -30,8 +30,17 @@ static unsigned int one_wide_tok(const char *s)
case '=': return TOK_ASSIGN;
case ',': return TOK_COMMA;
case '<': return TOK_COMP_LESS;
- case '%': return TOK_MODULO;
- case '*': return TOK_MULT;
+ case '>': return TOK_COMP_MORE;
+ case '+': return TOK_ADD;
+ case '-': return TOK_SUB;
+ case '*': return TOK_MUL;
+ case '/': return TOK_DIV;
+ case '%': return TOK_MOD;
+ case '&': return TOK_AND;
+ case '|': return TOK_OR;
+ case '^': return TOK_XOR;
+ case '$': return TOK_REF;
+ case '!': return TOK_NOT;
default: return TOK_NONE;
}
}