Neil Fraser
05253d0766
Add prefix/suffix to orphaned value blocks.
...
Also respect suppressPrefixSuffix on loops when generating prefix/suffix with continue/break blocks.
2019-05-17 15:04:39 -07:00
Neil Fraser
c0e14c3a7c
Add method to suppress prefix/suffix from blocks.
...
This allows generators to have more control over the placement of suffix. Needed for ‘if’ blocks and function calls which require their suffix code to be somewhere other than the end.
Also, add loop’s prefix to ‘break’ blocks, since the loop’s suffix will be the next statement hit.
Also, reuse procedures_callreturn generator for procedures_callnoreturn.
2019-05-14 17:19:31 -07:00
Neil Fraser
25adb40e66
Prefix and suffix edge cases for flow statements.
...
Call suffix code on break/continue before executing the break/continue.
Call prefix code for enclosing loop before executing continue.
2019-05-14 17:19:31 -07:00
Neil Fraser
0259f8bb48
Add extra suffix when generating if/return block.
...
Also fix loops in Lua.
2019-05-14 17:19:31 -07:00
Neil Fraser
c8bfc888c8
Throw errors instead of strings. ( #1974 )
...
Blocks and generators
2018-07-16 16:33:44 -07:00
Neil Fraser
652e57bc38
Generate for loops on one line.
2016-06-09 17:27:27 -07:00
Neil Fraser
cb26a13b00
Fix generators for deprecated controls_repeat block.
2015-09-07 19:42:22 -07:00
Neil Fraser
bafb3016fd
Remove duplicated generators.
2015-07-23 13:11:51 -07:00
Neil Fraser
d819db2acf
Lint corrections.
2015-07-02 19:41:10 -07:00
daarond
0faf2b7a53
still working on tests, lists are the only unfinished
2015-05-12 21:35:49 -05:00
daarond
867d6c03da
changes from Neil's comments
2015-05-12 16:20:57 -05:00
daarond
5e7f92cec3
more debugging
2015-05-10 00:40:01 -05:00
daarond
da2e0710bf
fixing some items
2015-05-09 17:48:55 -05:00
daarond
f0c837bb2d
starting php support addition
2015-05-09 16:52:36 -05:00