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

Cleaning up scopelang encoding and adding some default optimizations (beginning of #112) #185

Merged
merged 10 commits into from
Feb 2, 2022

Conversation

denismerigoux
Copy link
Contributor

@denismerigoux denismerigoux commented Jan 27, 2022

In preparation for the implementation the spec explained in #112, this PR lays out the groundworks in the syntax and the upper layers of the compiler, but mostly it cleans out various bugs and issues documented in the changelog.

Changelog

  • Parsing
  • Refactored and fixed subscope input variables encoding in Dcalc
  • Optimizations for defaults in Dcalc
  • Added "typecheck-only" mode to the compiler
  • Fixed bug in Python backend producing unreachable code

@denismerigoux denismerigoux changed the title Implement I/O attributes for scope variables (#112) Cleaning up scopelang encoding and adding some default optimizations (beginning of #112) Feb 1, 2022
@denismerigoux denismerigoux marked this pull request as ready for review February 1, 2022 14:46
(* at this point we know a conflict error will be triggered so we just feed the
expression to the interpreter that will print the beautiful right error message *)
Interpreter.evaluate_expr ctx.decl_ctx (EDefault (exceptions, just, cons), pos)
| [ ((ELit _, _) as except) ], _, _ ->
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add functions as values.

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.

1 participant