I know this should probably be in "Cutting Edge", but it is too late. Peter van Eerten, author of gtk-server, has written an amazing lexical parser/converter/compiler from basic to C in bash! He describes the program thus:
It supports gtk gui creation via glade and via calls to gtk libs. I have packaged the "compiled" compiler (yes, BaCon compiles itself!), the bash version and examples in the attached archive. The GTK apps I tried were about 20-30k in size after stripping.BaCon is a free BASIC to C converter for Unix-based systems. The following design goals were followed:
Must run on each Unix/Linux/BSD platform, including MacOSX
Converted sourcecode must be compilable with GCC
Must resemble genuine BASIC with implicit variable delarations
Spoken language constructs are preferred
To use Bacon your system must have Korn Shell or Bourne Again Shell (BASH) available. If both Korn Shell nor Bash are available on your platform, download and install the free Public Domain Korn Shell which can execute BaCon also. Furthermore BaCon works with the traditional Korn Shell KSH88, but also with a newer Kornshell implementation like the MirBSD Korn Shell.
BaCon presupposes a compiling environment, so if you don't have gcc, gtk headers etc. installed, you won't be able to do anything except to examine the source. I have also cleaned up a few examples. Documentation is included in the /doc dir.
Now, if we could only write a little lib (in Bacon - it supports includes) to understand gtkdialog syntax, we would have a nice little tool and very and small speedy apps - and the problems that Zigbert retularly experiences with widgets misbehaving or not recognizing one another's states would be solved.
With kind regards,
vovchik
BTW. BaCon - via functions and subroutines - is a "structured" variety of the language, which means no spaghetti. You can use it like Pascal and also make direct C calls. The sources are available at: http://www.basic-converter.org.