Short-circuiting Boolean "and" and "or" operators.

This commit is contained in:
Stephen Dolan committed 2012-09-04 20:38:59 +01:00
1 parent c5ab3b2336
commit 6e6ea50763
5 files changed
+62 -5

No files matched your search

+2
View File
@@ -17,6 +17,8 @@
"then" { return THEN; }
"else" { return ELSE; }
"elif" { return ELSE_IF; }
"and" { return AND; }
"or" { return OR; }
"end" { return END; }
"//" { return DEFINEDOR; }
"."|"="|";"|"["|"]"|","|":"|"("|")"|"{"|"}"|"|"|"+"|"\$" { return yytext[0];}