Smooth Sailing

posted in The Broken Mind
Published July 15, 2008
Advertisement
In the process of trying to clean up the compiler code, I made a few pretty useful classes. The classes dont do much, they are basically for the organization of the compiler.

Class Partition I love this. I use it to organize the output code. For example, I could have one for the header, the variable declarations, the body, and the footer. This is extremely useful and the compiler will probably have the output code broken up into many more partitions than just those 4.

At first I was just using string for the output code. Now I use multiple partitions, which arnt much more than an array of strings themself, and call my Output function to output them all in order.
Previous Entry SIL
Next Entry Tokens
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement

Latest Entries

26 Games 26 Weeks

1643 views

Celenite

1190 views

Im back...again!

1038 views

Tunnel Syndrome

1311 views

Borderlands

1215 views

First Flash Game

1011 views

First Flash Game

1308 views

Bullet holes? Yum!

1121 views

Game 2

1071 views

New Project

928 views
Advertisement