-
Notifications
You must be signed in to change notification settings - Fork 1
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
DSL compiler for simple While language #354
base: main
Are you sure you want to change the base?
Conversation
Big changes! Really fast preliminary comments:
|
Reviewing this can wait until you're at work of course but, I agree with the above.
Yes, though in many places the errors can be quite confusing if you don't know the implementation (esp. due to overloading, using implicit conversions seems to work better). For this case it should be fairly reasonable, |
84a0833
to
adef2e3
Compare
1080752
to
5afe207
Compare
commenting
742c656
to
ffee9ee
Compare
This PR adds functions to the DSL so that code can be written in a simple while language and compiled to BASIL IR basic blocks, this adds:
If (cond) Then (... blocks ...) Else (... blocks ...)
While (cond) Do (... blocks ...)
For (init, cond, incr) Do (... blocks ...)
It also adds infix operators to build basil IR expressions.