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

Completed Debug Flags #15

Merged
merged 10 commits into from
Jul 3, 2016
Merged

Completed Debug Flags #15

merged 10 commits into from
Jul 3, 2016

Conversation

1000000000
Copy link
Collaborator

There now exist four debug flags that do stuff when the brain flak program in which they appear is run by the interpreter with the -d or --debug flag (otherwise they are ignored). This resolves issue #6

  • #dv prints the current value
  • #dc prints which stack is the current stack (left or right) and its contents
  • #dl prints the contents of the left stack
  • #dr prints the contents of the right stack

Fixes a bug where nilads containing nonbracket characters that weren't part of debug flags would behave as monads with no contents.

The program now uses optparse for handling command line options

@1000000000
Copy link
Collaborator Author

I have played around with this a bit and found no bugs

@1000000000 1000000000 merged commit 2901a73 into master Jul 3, 2016
@1000000000 1000000000 mentioned this pull request Jul 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants