Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/constants.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-03 01:26:41 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-03 01:26:41 (GMT)
commit7d2fccad55a866ce977e190b120d117a8ad2c59c (patch)
treeba9ea56cabbecea2354e50154c3897caa77e274b /constants.py
parent991053740e566d7544c22423864cdbdb8f43f34d (diff)
predefined macros
Diffstat (limited to 'constants.py')
-rw-r--r--constants.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/constants.py b/constants.py
index 06e877b..a949706 100644
--- a/constants.py
+++ b/constants.py
@@ -124,6 +124,24 @@ PORTFOLIO_STYLE_1x1 = ['template1x1']
PORTFOLIO_STYLE_2x1 = ['template2x1']
PORTFOLIO_STYLE_1x2 = ['template1x2']
+
+#
+# Macros (groups of blocks)
+#
+MACROS = {
+ 'kbinput':[[0, 'forever', 0, 0, [None, 1, None]],
+ [1, 'kbinput', 0, 0, [0, 2]],
+ [2, 'vspace', 0, 0, [1, 3]],
+ [3, 'if', 0, 0, [2, 4, 7, 8]],
+ [4, 'greater2', 0, 0, [3, 5, 6, None]],
+ [5, 'keyboard', 0, 0, [4, None]],
+ [6, ['number', '0'], 0, 0, [4, None]],
+ [7, 'stopstack', 0, 0, [3, None]],
+ [8, 'vspace', 0, 0, [3, 9]],
+ [9, 'wait', 0, 0, [8, 10, None]],
+ [10, ['number', '1'], 0, 0, [9, None]]]
+ }
+
#
# blocks that are expandable
#