YAP Interpreter
by batcoif
Interpreter
Help guide
Changelog
Script
# Demo: variables, labels and GOTO CONSUME time CONSUME move YAP "Hello, world!" YAP "What's your name?" SET name = (input) YAP "Nice to meet you, {name}!" SET tries = 0 retry: YAP "Enter the password:" IF (input) = abc123 THEN YAP "Welcome, {name}!" GOTO done ELSE SET tries = tries + 1 YAP "Wrong ({tries}/3)." IF tries = 3 THEN YAP "Too many tries. Stopping." TIME STOP ELSE GOTO retry IFEND IFEND done: YAP "Waiting 2 seconds..." TIME WAIT 2 YAP "Goodbye, {name}!"
Run
Stop
Open file
Save .yap
Undo
Tools:
Auto indent
Remove indents
2 spaces
4 spaces
Tab
Convert Python → YAP
Super compress
Unpack
Tab inserts an indent · Shift+Tab removes one · Esc then Tab leaves the box · Ctrl+Enter runs · stuck? open the
Help guide
Output
Send