that certainly is geeky -so geeky that I'm feeling a little inadequate right now. I'd say the Integer part probably qualifies as slightly clever - every single time it's come up IME the solution was "just divide by 1". I'm guessing that kturtle works with "floats", er, real numbers, automatically. (gee, is my C-based language experience showing too much here - it took me a full 5 seconds to remember that the phrase I was looking for was "real number")
anyway, in an only related cuz it's also geeky turn of topic - are you planning on doing more linux class stuff again? I am still interested.
might come though..if there is an agreed-upon syntax proposal, and a big set of unittest
(that implies that the unitest framework gets love and then useable),
i promis implement it (no dealine though, but i usually keep
promisses).please keep in mind that the syntax proposal is quite an interesting
thing, i mean "are arrays a little like objects", or "c like".. so far
kturtle handles types dynamically, so this is also true for arrays
then (that kind of messes witht the c-style approach). the there
should be ways to put/add/get/remove/etc stuff from the array. (i love
the ruby syntax for all this)
i guess i was on ranting mode for the last paragraph.. oops.
ciao!
_cies.
Well a bit later (actually about 1 or 2 years) Cies Breijs found my little project and used it to create kturtle which had its first release in 2003. Basically he used it to implement the logo language and added translations to the lexer. Which was incidentally the second programming language I learned at Five Forks Middle School USA around 1989 ;). As I mentioned my code was free to use by anyone willing to learn about compilers. I only asked that once they used my code, they would also mention me in the authors section. That's why I'm also mentioned on the kturtle master branch as one of the authors : Kturtle authors. Unfortunately I'm not mentioned on wikipedia itself yet. Maybe I should write a browser based version? And yes about 10 minutes later my mind went: 'how hard can it be?' so I started developing it ;) WebTurtle aka KTurtle in your browser (22/1/2020 - Present)
After the nice experience with arkapoing and phaser.js I took a shot at making a kturtle clone that runs in the browser using phaser. To make things easy on myself I use plain javascript as language and abuse the 'eval' function. I could write a small parser on the backend and translate kturtle logo script into javascript with it. But this works already surprisingly well. All the examples I found on net we're easily translated in to WebTurtle equivalent.
Some todos like a nicer editor with syntax highlighting and improving the css (make it responsive and display well on different screen sizes) will be left for when I have less other work. It's pretty much feature complete and can do everything kturtle can already...Got most of it done in less than a day, most likely working on it for a few weekends would get it into a polished fully compatible web based version of the native kturtle. One thing that currently is not implemented is pausing and variable introspection. These can be best done when we add an actual backend parse phase where we turn scripts into js code that can be paused etc.
I first didn't have colors implemented and had the kturtle icon as sprite when I took these screenshots. Meanwhile code has improved, found a better looking sprite image for the turtle and also colors now work pencolor(r,g,b) and canvascolor(r,g,b) now are implemented as well just check out the actual WebTurtle here.