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

'++' in mpc_lang causes segfault #9

Closed
cesquivias opened this issue May 3, 2014 · 4 comments
Closed

'++' in mpc_lang causes segfault #9

cesquivias opened this issue May 3, 2014 · 4 comments

Comments

@cesquivias
Copy link

I was working through Build Your Own Lisp I mistakenly put two '+' in the grammar. The program failed with a segfault.

The problem was easy to spot, but a simple error message would be preferred.

@orangeduck
Copy link
Owner

Thanks for the report! I'll look into it 👍

@orangeduck
Copy link
Owner

This should be fixed in 6af8360. Perhaps you can check for me that it is fixed in your situation?

@cesquivias
Copy link
Author

The program no longer segfaults. Thanks!

The program now returns an error saying "Parser Undefined!" If the error could point out where in the grammar there was an error that'd be very helpful.

@orangeduck
Copy link
Owner

Hey,

You should be able to get a specific error by looking at the return of mpca_lang.

Thanks,

Dan

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

No branches or pull requests

2 participants