31st August 2007, 06:34 pm
I’m still playing with Antlr. The C++ support is still sometime off so I am fiddling with the C runtime for Antlr. To be honest not spent much time on it past couple of weeks life has been pretty busy. Need to get back into it.
The prospect of using C has not filled me with joy! so my plan has been to provide a C interface for Antlr to use in its action and then in the implementation of the interface use all the goodness of C++. The extern “C” command was not something I had used much until the other day. It stops all the name mangling that goes on in C++ to allow function overloading and encode the type into the function name. Making it look like a C function. Continue reading ‘Mist, Antlr - mixing C and C++ (extern “C” happyness)’ »
31st August 2007, 02:43 pm
NumberJumble is really just a learn how to program in Java experiment but I decided to release it for everyone to play and last week actually had a go at promoting it. Marketing a game would be a good learning experience as it is not something I have done before. Continue reading ‘NumberJumble Marketing’ »
24th August 2007, 01:19 pm
Ever since reading the practice of programming (Kerningham and Pike) where they briefly discuss just in time compilers I have had the urge to write some code to implement a playground Just in time (JIT) compiler. I thought it would be fun to write a JIT calculator! Completely pointly but fun bit of code. I still have not written that bit of code but I moved a step closer. Continue reading ‘Simplest Just In Time Compiler Possible’ »
20th August 2007, 12:30 pm
My first attempt at a web game. I was just going to post it on this blog, but decided to rehash the old marblemist.com website to give NumberJumble a proper home. Add a sprinkling of google add and suddenly I have the start of an online gaming site, well not quite but still it was fun putting it together. Continue reading ‘NumberJumble’ »
16th August 2007, 06:35 pm
Well I have been a bit quiet on the blogging front. A little summer break helped recharge the batteries but stopped all blogging. I have also managed to complete a little java game over the last couple of weeks. Nothing spectacular, it doesn’t even have sound. Sometime in the close future, I will build an applet and post it so all can play. The game element is very simple just un-jumble the numbers! He is a screen shot.

It requires Java version 6. Using version 6 (or 1.6 depending on who you talk to) of Java for an applet is a bit of a no-no if you expect be able to play it, most people use 1.4 or 1.5. Some people also code in version 1.5 and use a tool to convert to 1.4 - sorry can’t seem to recall the name of the tool. Most macs only have 1.4 and version 6 is not due until the next Mac OS update.
I have been spending a reasonable amount of time playing with antlr/antlrworks and delving into the Antlr book. I have done a first pass creating a grammar for mist. I know have to figure out all the details for using it with C, I wish the C++ would materialise. Of course, I need to go though the grammar and set the abstract syntax tree correctly but it is good progress, if a little slow.