summaryrefslogtreecommitdiff
path: root/src/mp-equation-lexer.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/mp-equation-lexer.l')
-rw-r--r--src/mp-equation-lexer.l4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mp-equation-lexer.l b/src/mp-equation-lexer.l
index bbc9765..74eb7d5 100644
--- a/src/mp-equation-lexer.l
+++ b/src/mp-equation-lexer.l
@@ -75,6 +75,8 @@ MOD [mM][oO][dD]
AND "∧"|[aA][nN][dD]
OR "∨"|[oO][rR]
XOR "⊻"|"⊕"|[xX][oO][rR]
+LSHIFT "<<"
+RSHIFT ">>"
NOT "¬"|"~"|[nN][oO][tT]
RE "⃰ℜ"
IM "ℑ"
@@ -94,6 +96,8 @@ IN [iI][nN]
"√" {return tROOT;}
"∛" {return tROOT3;}
"∜" {return tROOT4;}
+{LSHIFT} {return tLSHIFT;}
+{RSHIFT} {return tRSHIFT;}
{NOT} {return tNOT;}
{AND} {return tAND;}
{OR} {return tOR;}