From 468cb19bce9caf11b027da791b1d6f0aa1b41602 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 14 Nov 2014 03:21:42 +0100 Subject: added ^# (XOR) operator also changed precedence of + operator (higher than minus). the effects of this should be minimal --- src/parser.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/parser.cpp') 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); } -- cgit v1.2.3