stardance has been extended another month! the new deadline is october 31 :)

You are browsing as a guest. Sign up (or log in) to start making projects!

2h 33m 51s logged

BrainF#ckery Devlog #3! :jamegam-jump:

What’s Changed?

Well… I added command line arguments!!!
Gone are the days of manually typing your BF code into the terminal, now you can specify and input and output file, as well as pass flags!
I also published to PyPi!!! Find it Here!
On top of all that, I also made a bunch of small changes and modifications to fix bugs and make my compiler work better.

Command Line Args! :jamegam-yay:

Here’s the current full list:

  • -h, or --Help -> Your basic help command, don’t need to say much here
  • -v, or --Verbose -> Enables verbose (extra) logging
  • -i or --Input -> Takes a file path as an input file (a .bf file)
  • -o or --Output -> Takes a file path to be the outputted executable (a .exe file)|
  • -r or --Run -> Runs the newly compiled executable right after it’s done being compiled.
  • c or --Clean -> deletes the build files (.obj and .asm product files) after compilation is complete
  • ***And hopefully more to come! I already have some ideas! :b

WE’RE ON PYPI!!!!!!!!!!

Check it out HERE!!!

And finally, the boring bugfixes… :(

A couple things:

  • I realized, after a very smart friend of mine pointed it out, that I was not popping the stack after pushing it to call a function… :drgn_0_0: If I left this in, more complex programs would crash due to a stack overflow….
  • I added comment clearing! Originally, the compiler would only read BF code that happened to be one of the 8 valid characters, but what if you happened to put a valid BF char in a comment? Well now there’s a loop that runs before the rest of the compiler that strips all lines of their text after a ; character, meaning all comments get deleted!
  • I also added more error handling, so in case of a file not found or something, instead of the code crashing it just prints an error to the logs and returns.

Thanks for sticking around for my devlog! :drgn_heart:

see ya next time! :b

0
12

Comments 0

No comments yet. Be the first!