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

Improve error handling in code generator #60

Open
dibyendumajumdar opened this issue Jul 10, 2021 · 0 comments
Open

Improve error handling in code generator #60

dibyendumajumdar opened this issue Jul 10, 2021 · 0 comments
Labels

Comments

@dibyendumajumdar
Copy link
Owner

dibyendumajumdar commented Jul 10, 2021

We just had asserts in various places rather than proper error handling.

Use the setjmp/longjmp strategy as in the parser, linearizer.

We should also try to emit line number / and show the generated C code on error.

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

No branches or pull requests

1 participant