aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-04 17:22:14 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-04 17:22:14 +0200
commit9edec05ac4069962d92f60efc66b8305e2d08cc5 (patch)
tree1eb328b333585a2eaf9876d499ce0db13b4b0e50
parent0056bba475b449920a90e598737121795f2dc7ac (diff)
Change XOR from ‘XOR’ to ‘~’
-rw-r--r--src/lexer.l19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/lexer.l b/src/lexer.l
index ed8d599..832db79 100644
--- a/src/lexer.l
+++ b/src/lexer.l
@@ -17,15 +17,16 @@ extern const char *current_file;
%%
-¬|! { return NOT; }
-∧|&& { return AND; }
-∨|\|\| { return OR; }
-⊻|⊕|XOR { return XOR; }
-⇒|=> { return IMPL; }
-\<=>|⇔ { return EQUIV; }
-\( { return OPAR; }
-\) { return CPAR; }
-\n { return EOL; }
+¬|! { return NOT; }
+∧|&& { return AND; }
+∨|\|\| { return OR; }
+⊻|⊕|~ { return XOR; }
+⇒|=> { return IMPL; }
+\<=>|⇔ { return EQUIV; }
+\( { return OPAR; }
+\) { return CPAR; }
+\n { return EOL; }
+
[a-zA-Z] {
yylval.ch = *yytext;
return IDENT;