diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-04 17:22:14 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-04 17:22:14 +0200 |
commit | 9edec05ac4069962d92f60efc66b8305e2d08cc5 (patch) | |
tree | 1eb328b333585a2eaf9876d499ce0db13b4b0e50 /src | |
parent | 0056bba475b449920a90e598737121795f2dc7ac (diff) |
Change XOR from ‘XOR’ to ‘~’
Diffstat (limited to 'src')
-rw-r--r-- | src/lexer.l | 19 |
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; |