diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-03-18 21:21:53 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-03 18:48:16 +0200 |
commit | 6e4e727792c31f480d17c248f667e5328a673d3b (patch) | |
tree | bce8c376f7764728aa97076ffe383841b3051792 /tools/gencode.py | |
parent | 10714081f383b3332b37dd23e561b3f279cd26cb (diff) | |
download | andean-abyss-6e4e727792c31f480d17c248f667e5328a673d3b.tar.gz |
Events!
Diffstat (limited to 'tools/gencode.py')
-rw-r--r-- | tools/gencode.py | 3 |
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] + ' ],') |