Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

BF Macro Step One Solution

Sign in to follow this  


Thinking a bit since my earlier entry...

since the macro handler is much like the C/C++ handler, I thought I might as well just use a C preprocessor, and see where it lead me.

I wound up using the Cybiko preprocessor.

Now I've got a tool that takes the following:

#define SET(x,y) >(x)[-]+(y)<(x)
#define ZERO(x) SET(x,0)
#define POSITIONA 10
#define POSITIONB 12
#define VALUE ~5


and converts it to the following:


So, most of the hard part is done... all I need now is to make a tool to take it the rest of the way, and I'm done!
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!