summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/automate/lexer.ll
diff options
context:
space:
mode:
Diffstat (limited to '2003/i/buzz/src/automate/lexer.ll')
-rw-r--r--2003/i/buzz/src/automate/lexer.ll11
1 files changed, 9 insertions, 2 deletions
diff --git a/2003/i/buzz/src/automate/lexer.ll b/2003/i/buzz/src/automate/lexer.ll
index 9cf6c93..9f3ebb7 100644
--- a/2003/i/buzz/src/automate/lexer.ll
+++ b/2003/i/buzz/src/automate/lexer.ll
@@ -9,7 +9,7 @@ using namespace Automate;
int yyparse (void);
-Grafcet *input_grafcet;
+extern Grafcet *input_grafcet;
%}
@@ -29,7 +29,14 @@ STRING \"[^\n"]\"
"print" return PRINT;
-[-#+=.<>] return yytext[0];
+"&&" return '&';
+"||" return '|';
+"==" return EQ;
+"!=" return NEQ;
+"<=" return LEQ;
+">=" return GEQ;
+
+[-#+=*/<>()] return yytext[0];
{FLOAT} {
yylval.fl = strtod (yytext, 0);