summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/gencode.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/gencode.py b/tools/gencode.py
index b830988..c78ce11 100644
--- a/tools/gencode.py
+++ b/tools/gencode.py
@@ -56,6 +56,9 @@ for event in range(2,146):
elif line.startswith('each piece'):
line = line.split(' ', 2)
print('\t[ vm_piece, 0, (p,s)=>' + line[2] + ' ],')
+ elif line.startswith('while'):
+ line = line.split(' ', 1)
+ print('\t[ vm_while, ()=>' + line[1] + ' ],')
elif line.startswith('if'):
line = line.split(' ', 1)
print('\t[ vm_if, ()=>' + line[1] + ' ],')