From 6e4e727792c31f480d17c248f667e5328a673d3b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 18 Mar 2023 21:21:53 +0100 Subject: Events! --- tools/gencode.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') 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] + ' ],') -- cgit v1.2.3