Inevitably when you write Bison/Yacc grammars you will run into a grammatical errors. In this case the grammar was my LBNF grammar (Fortran.cf, Fortran.y, Fortran.l) for Fortran and I’m running the terminal.for module from the old Galaxy program through my ‘go’ script (current files: debugging.7z). Here’s the terminal output from my script run. Interspersed with […]
Create a gold bitmap font
In this post I’ll take you through the process of producing a gold colored font similar to what I’ve used in my own apps. First the alphabet: We need a string of characters separated by one or more spaces (I used 4 in the example below to properly separate the characters) to use in Gimp […]
Split Linear Font File
An image of the linear alphabet isn’t going to do us much good so we need to split it down into individual letters. Splitting Into Individual Letters: To split this long image of the alphabet into individual characters I created a ‘bash'(linux) script. It uses the Image-Magick ‘convert’ program to do two things. First convert […]
Bitmap Fonts in Cocos2d-x
This article describes the process of creating a bitmap’d font, using the GIMP image editor, the image-magick suite, and some home-brewed C-code. It also describes how to use the font in the Cocos2d-x/Android-Studio development environment. For this project you will need: Bash (Sorry, moved from MSWindows to Ubuntu and have never looked back – script […]
Creating a Bitmap Font
The goal of this post is to demonstrate how to generate a bitmap font in a PNG file with a PLIST xml descriptor file for use in Cocos2d-x programs. I’ll describe a no-cost method suitable for a beginning or hobby game programmer but useful across the spectrum. My system is an Ubuntu/linux system and the […]
After a hiatus …
Well it took me a while but I managed to get Hexing up on the Google Play Store again. Who would have thought just adding a privacy statement could have been such an ordeal. It all started way back when … Trippy Feet: Well, I should mention first that in the following recollection I probably […]
BNFC Quirks
BNFC is a great tool but it has some quirks that have slowed down the process of building a front-end for my fortran2c translator. However, the code generation, especially if you haven’t built a compiler before moves you quite a distance forward. Here’s what I’ve found so far… Position dependent code: First, in the lexical […]
The Front-End (Part 2)
The following three files demonstrate how the front end works. These files are the original source file Maze.for, the pre-processed file Maze_pp.for, and the front end debug output TestProgram.out. These files are included here. First Maze.for the original Fortran source: C C MAZE – USES A VT100 TO WANDER AROUND. C […]
The Front-End (Part 1)
The front-end to my Fortran 2 C translator turned out a lot easier to create with BNFC than I was anticipating. I was expecting a lot more difficulties than actually happened. There are a few things I should mention as potential problems with BNFC that should be watched for. First, BNFC is supposedly designed for […]
Fortran Translator Progress
After typing up my intro page for my idea of a Fortran2C translator and reading some of the documentation I mentioned I was chomping at the bit to try it out to see how far I could get. Well I’ve had some progress already! Creating the front-end actually worked out easier than I was expecting. […]