3 ms·
Well it started out as a joke, but then I'm afraid it's starting to making sense. The blink attribute could be a control structure! Blinking text would only ex
by DonHopkins 8y ago
Well it started out as a joke, but then I'm afraid it's starting to making sense.
The blink attribute could be a control structure! Blinking text would only execute when you could see it, so you could write a blinking word "BEEP," and you'd hear it beeping on and off as it blinked!
Or you could change a "DO" loop into a "DON'T" loop by making it transparent.
And you could extend IF ELSE THEN to support a partially transparent MAYBE clause, whose probability of executing was proportional to its alpha channel.
When looking at the FORTH code in Github that Mitch linked to, I realized that Github supports colored syntax highlighting for FORTH! (Or at least it tries.)
https://github.com/MitchBradley/cforth/blob/master/src/cforth/control.fth https://github.com/MitchBradley/cforth/blob/master/src/cfort...
But it colored the "Primitive control flow words" like if/do/while/etc red by mistake, because it didn't realize that particular code was actually defining those words instead of just using them.
It's pretty hard to write a code syntax colorizer for a language that does't actually have any syntax.