Forth source converters, now also for QL SuperForth
Posted: Wed Dec 30, 2015 12:53 am
One month ago I published two programs which may be useful to other Forth programmers: Two Forth source preprocessors and converters for Forth systems that need blocks files.
Now I announce them here because I've added support for QL SuperForth.
They allow to edit and mantain a Forth source almost without the limits imposed by blocks. Some simple conventions are used to mark the block headers, and comments that will not be copied to the target format. Empty lines are ignored as well.
There are two independent versions of the tool: fsb is written in VimL (the language of the Vim editor), but it can be used as a command as well. fsb2 is written in Forth for Gforth, and it's much faster (though the difference is remarkable only while converting big files on a slow machine, say the Raspberry Pi 2 in my case). They do basically the same, with some small differences.
The programs are published also on GitHub. More details:
Now I announce them here because I've added support for QL SuperForth.
They allow to edit and mantain a Forth source almost without the limits imposed by blocks. Some simple conventions are used to mark the block headers, and comments that will not be copied to the target format. Empty lines are ignored as well.
There are two independent versions of the tool: fsb is written in VimL (the language of the Vim editor), but it can be used as a command as well. fsb2 is written in Forth for Gforth, and it's much faster (though the difference is remarkable only while converting big files on a slow machine, say the Raspberry Pi 2 in my case). They do basically the same, with some small differences.
The programs are published also on GitHub. More details: