stepleton
Veteran Member
The Tektronix 4050-series machines are incredible, but I just don't want to write code in BASIC. Structured programming was a pretty good idea. I'm not allergic to GOTOs, but I prefer my jumps to remain in assembly language.
So I wrote a compiler. Now I can program in a reasonably spacious subset of Pascal and have it compile to BASIC. The compiler is written in Python 3.10 (so it runs on your modern computer, not the Tek), and the only third-party library you'll need is the Lark parser library.
You can find it (and use it at your own risk --- it's definitely a work in progress!) at https://github.com/stepleton/mupas
The first thing I programmed was your obligatory fractal curve, now that recursion is so easy (pardon the uncalibrated display):
but I'm hoping to write more elaborate programs very soon. In fact, this is why I can guarantee ZERO support or assistance with the compiler I'm going to be too busy writing my own programs for the next few weeks. You can be certain that bugs will be fixed and features added as I do. I have a specific program in mind that I'll start working on soon...
I'm in a bit of a hurry, in fact: my Tek 4054A is not mine! It's borrowed, and the owner will be getting it back in a little while --- too soon! Which is why I'm very keen to know if anyone out there has a 4050-series machine that they might be willing to part with. I'm willing to look into getting one from just about anywhere. I hope stunts like this one show that your machine would find a good home with me!
But in the meantime I'll try to enjoy the time I have and (with the help of my compiler) really put it through its paces. Stay tuned!
(Link to project acknowledgements, including some members of this forum.)
Footnote: Connoisseurs know that the 4052A and 4054A are capable of some structured programming thanks to enhancements to the built-in BASIC. My compiler uses none of those, as I'd like to support as much of the range as I can --- plus, who knows what variety of 4050-series machine I might be able to get my hands on somewhere down the line?
So I wrote a compiler. Now I can program in a reasonably spacious subset of Pascal and have it compile to BASIC. The compiler is written in Python 3.10 (so it runs on your modern computer, not the Tek), and the only third-party library you'll need is the Lark parser library.
You can find it (and use it at your own risk --- it's definitely a work in progress!) at https://github.com/stepleton/mupas
The first thing I programmed was your obligatory fractal curve, now that recursion is so easy (pardon the uncalibrated display):
but I'm hoping to write more elaborate programs very soon. In fact, this is why I can guarantee ZERO support or assistance with the compiler I'm going to be too busy writing my own programs for the next few weeks. You can be certain that bugs will be fixed and features added as I do. I have a specific program in mind that I'll start working on soon...
I'm in a bit of a hurry, in fact: my Tek 4054A is not mine! It's borrowed, and the owner will be getting it back in a little while --- too soon! Which is why I'm very keen to know if anyone out there has a 4050-series machine that they might be willing to part with. I'm willing to look into getting one from just about anywhere. I hope stunts like this one show that your machine would find a good home with me!
But in the meantime I'll try to enjoy the time I have and (with the help of my compiler) really put it through its paces. Stay tuned!
(Link to project acknowledgements, including some members of this forum.)
Footnote: Connoisseurs know that the 4052A and 4054A are capable of some structured programming thanks to enhancements to the built-in BASIC. My compiler uses none of those, as I'd like to support as much of the range as I can --- plus, who knows what variety of 4050-series machine I might be able to get my hands on somewhere down the line?