aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-14 03:21:42 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-14 03:21:42 +0100
commit468cb19bce9caf11b027da791b1d6f0aa1b41602 (patch)
treef0d4e68911df3fd412fb2428fcdffed4f7e2dfbd /src/parser.cpp
parent3006be5c5a6655e6f125f33628e6f182bcd61e5e (diff)
downloadsciteco-468cb19bce9caf11b027da791b1d6f0aa1b41602.tar.gz
added ^# (XOR) operator
also changed precedence of + operator (higher than minus). the effects of this should be minimal
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 24d48c2..f839840 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -1735,6 +1735,11 @@ StateControl::custom(gchar chr)
expressions.push_calc(Expressions::OP_MOD);
break;
+ case '#':
+ BEGIN_EXEC(&States::start);
+ expressions.push_calc(Expressions::OP_XOR);
+ break;
+
default:
throw Error("Unsupported command <^%c>", chr);
}