aboutsummaryrefslogtreecommitdiffstats
path: root/sets.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-12-23 14:09:56 +0100
committerMattias Andrée <maandree@operamail.com>2012-12-23 14:09:56 +0100
commita565a38f6199cdffce6f9a6995bfcdc8253d9894 (patch)
treee4da6ca3796194f22fdd4e14eee7592eb2b8e43c /sets.py
parentallow C and ! as alternatives to ~ (diff)
downloadsets-a565a38f6199cdffce6f9a6995bfcdc8253d9894.tar.gz
sets-a565a38f6199cdffce6f9a6995bfcdc8253d9894.tar.bz2
sets-a565a38f6199cdffce6f9a6995bfcdc8253d9894.tar.xz
add suppot for ¬
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'sets.py')
-rw-r--r--sets.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sets.py b/sets.py
index af0cd4e..eae0eef 100644
--- a/sets.py
+++ b/sets.py
@@ -108,7 +108,9 @@ if len(next.elems) > 0:
formula = sys.argv[1]
formula = formula.replace('\\', '-').replace('*', '&').replace('+', '|')
-formula = formula.replace('C', '~').replace('!', '~')
+formula = formula.replace('C', '~').replace('!', '~').replace('¬', '~')
+
+
for i in range(0, 10):
formula = formula.replace('%i' % i, 'sets[%i]' % i)