diff options
author | Stephen Roantree <stroantree@gmail.com> | 2012-10-07 22:34:12 +0100 |
---|---|---|
committer | Stephen Roantree <stroantree@gmail.com> | 2012-10-07 22:34:12 +0100 |
commit | 0618e61e0bd0a58cd222bb4905c51178fe332525 (patch) | |
tree | 523b2bdf785927f6f431b341662453231e5c5c02 /lexer.l | |
parent | a2643cc0d564033c49bffbd0de9a8e797281e73f (diff) |
Add <,>,<=,>= binops
Diffstat (limited to 'lexer.l')
-rw-r--r-- | lexer.l | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -48,7 +48,9 @@ "*=" { return SETMULT; } "/=" { return SETDIV; } "//=" { return SETDEFINEDOR; } -"."|"="|";"|","|":"|"|"|"+"|"-"|"*"|"/"|"\$" { return yytext[0];} +"<=" { return LESSEQ; } +">=" { return GREATEREQ; } +"."|"="|";"|","|":"|"|"|"+"|"-"|"*"|"/"|"\$"|"<"|">" { return yytext[0];} "["|"{"|"(" { return enter(yytext[0], YY_START, yyscanner); |