by @Jake Bowden Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_0a11d869_2017_4ace_b123_b4facfe61049"},{"@type":"Declare","tpe":"Integer","name":"dart","id":"id_e6fa0969_0555_4d8e_9f16_c081f27d1540","initValue":"1"},{"@type":"Declare","tpe":"Integer","name":"z","id":"id_bf6ef7f0_0eb5_43e3_9976_e977d7f4aa84","initValue":null},{"@type":"Declare","tpe":"Integer","name":"x","id":"id_b95af8a6_f591_4d7d_ac1e_48deb3db8f69","initValue":"101"},{"condition":"x>0","@type":"While","id":"id_0b6f830e_0484_479a_a79a_d537e3b33cb5","body":{"statements":[{"@type":"Input","name":"z","id":"id_fb5577a5_01a8_45ac_a12f_1c48fb452156","prompt":null},{"newline":true,"@type":"Output","id":"id_820f7562_eaa9_4364_b885_ba1acbc477da","value":"x-z"},{"@type":"Assign","name":"x","id":"id_f6b70232_8f1f_4763_913a_3992e829d34c","value":"x-z"},{"@type":"Assign","name":"dart","id":"id_f0e863a8_20d6_4067_8180_baac9a292964","value":"dart + 1"}],"id":"id_154fd53c_2a3c_4051_918f_f47b21863ecb"}},{"newline":true,"@type":"Output","id":"id_c7a7094d_003e_462d_b655_118e8787c976","value":"\"well done, you reached zero\""},{"newline":true,"@type":"Output","id":"id_227d93a9_ee8a_40c3_b084_18ec2d88ae29","value":"dart-1"},{"newline":true,"@type":"Output","id":"id_ed09b324_b71b_43ce_93c5_d90eb0a506a6","value":"\"dart thrown\""},{"@type":"Return","id":"id_5ac90c42_25a6_40ec_b72a_17b98b760d56","maybeValue":null}],"parameters":[]},"id":"id_e5e1f9e2_43ee_4102_b161_cba07faa0611","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":152}