ticalc.org
Basics Archives Community Services Programming
Hardware Help About Search Your Account
   Home :: Archives :: News :: Grammer 2 for the TI-83+ family

Grammer 2 for the TI-83+ family
Posted by Xavier on 7 February 2019, 00:28 GMT

We still haven't performed enough exploration of Zeda "Xeda / Thunderbolt" Thomas's huge production of high-quality programs, so let's do some more :)

Today, we're profiling Zeda's powerful and fast Grammer 2, a language interpreter for the monochrome TI-Z80 series. It is designed for making games, and provides 16-bit integer, and now floating-point, arithmetic. Unsurprisingly, "Grammer 2" is an improved version of Grammer 1, which was featured here years ago, and it even keeps backwards compatibility; It is packaged as an app, which brings interesting features.

A little bit of history first: for the most part, Zeda worked on Grammer 2 in 2011-2013, then the project went dormant for years, after months of improvements and bugfixes on the source code were lost. In 2016, someone else rebuilt source code from slightly newer binaries, and performed extra changes. Finally, in the few months before this news item, more changes were performed: cleanups, optimizations, the addition of a menu and an extension system. Zeda recently updated the archive multiple times, and now keeps working on expanding the functionality further, e.g. this week with nothing less than floating-point math!

As mentioned above, Grammer 2 is an interpreted language, which means that it doesn't need a compilation step, it can more easily show errors in the source code (easier debugging), and the interpreter's checks make it harder to shoot yourself in the foot and crash the calculator. As such, it's probably easier to learn than other languages - Axe, for instance, is a very famous alternative language, and a compiled one, with much less in the way of seat belts. Interpreted languages are typically slower than languages compiled to native code... but as you can see for yourselves in the screenshots, Grammer 2 is plenty fast for quite a number of purposes! Of course, it's much faster than TI-Basic, and provides immensely better access to graphics, like most alternative languages done by third parties on our beloved little calculators anyway.

The Grammer language has a dedicated section in our archives, you can find several dozen entries there... among which is an inevitable numeric quadratic solver showing off the brand-new floats ;)

  Reply to this article


The comments below are written by ticalc.org visitors. Their views are not necessarily those of ticalc.org, and ticalc.org takes no responsibility for their content.


Re: Grammer 2 for the TI-83+ family
Stefan Bauwens  Account Info
(Web Page)

Congratulations on the feature Xeda! It's a pretty impressive piece of work!

Reply to this comment    9 February 2019, 19:51 GMT


Re: Re: Grammer 2 for the TI-83+ family
ThunderBolt  Account Info

Thanks, Stefan!

Reply to this comment    13 February 2019, 19:10 GMT

Re: Grammer 2 for the TI-83+ family
ThunderBolt  Account Info
(Web Page)

Thank you so much for this well written article! As far as hobbies go, calc programming isn't something most people can relate to, so it's kind of isolating. I was able to show this article to family and it was really cool ^~^

Also, this comment:
"In 2016, someone else rebuilt source code from slightly newer binaries"

It was actually Hans Burch (see the attached URL) :)

Reply to this comment    13 February 2019, 19:10 GMT

Re: Grammer 2 for the TI-83+ family
Jonson26 Account Info

Damn, that particle demo looks really cool!
Can somebody remake it for 68?

Reply to this comment    3 March 2019, 15:31 GMT


Re: Re: Grammer 2 for the TI-83+ family
ThunderBolt  Account Info

I'm not the person for that (it has been a long time since I did 68K assembly or C), but it is pretty straightforward! It uses a buffer with the particles and it stores their coordinates. On each iteration, erase the pixel at that coordinate, if it can move down, it does, else it randomly chooses left or right (if possible), then it finally redraws it in the new position.

Reply to this comment    12 March 2019, 21:24 GMT


Re: Re: Re: Grammer 2 for the TI-83+ family
Jonson26 Account Info

WOW! That really sounds simple! I'd rather code it in c, though. (I'm more of a C person. ;) )

Reply to this comment    16 March 2019, 16:58 GMT

  Copyright © 1996-2012, the ticalc.org project. All rights reserved. | Contact Us | Disclaimer