Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brain-Flak debug flags #6

Closed
1000000000 opened this issue Jun 24, 2016 · 6 comments
Closed

Brain-Flak debug flags #6

1000000000 opened this issue Jun 24, 2016 · 6 comments

Comments

@1000000000
Copy link
Collaborator

1000000000 commented Jun 24, 2016

For whatever purpose, either hunting down errors in your brain-flak code or for trying to pin down a bug in the interpreter a debugger would be very useful. This has been touched upon elsewhere so I figured it would be a good idea to have a place to discuss the idea.

From @DJMcMayhem on the subject of the debugger

I don't know what that will look like, but it will probably be a CLI flag (probably -d) and some commands to display

  • The active stack
  • A specific stack
  • The result of a function call

and a way to pause for user input, as well as maybe some others.

@1000000000
Copy link
Collaborator Author

I have pushed a version of the program where most of the interpreter's functionality has been refactored into its own class. It is missing @Wheatwizard's changes for the moment.

@DJMcMayhem
Copy link
Owner

Haha, we happened to make changes at the same time. That might make it really hard to merge the two back together.

@DJMcMayhem
Copy link
Owner

We should setup a brain-flak chatroom so we can talk about potential changes faster than over commenting. I can set one up on stackoverflow. Do you have an account there?

@1000000000
Copy link
Collaborator Author

Yup, same username as on Github

@DJMcMayhem
Copy link
Owner

@1000000000 1000000000 changed the title Brain-Flak debugger Brain-Flak debug flags Jun 30, 2016
@1000000000
Copy link
Collaborator Author

Completed by pull request #15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants