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

Langium binding and more #15

Merged
merged 15 commits into from
Oct 16, 2024
Merged

Langium binding and more #15

merged 15 commits into from
Oct 16, 2024

Conversation

JohannesMeierSE
Copy link
Collaborator

  • added first version of a Typir binding for Langium
  • integrated type creation into a service
  • added listeners for added/removed types/edges
  • fixed bugs
  • handle the removal of types and their inference rules
  • extended validation API
  • validation for unique function and class declarations

Copy link
Member

@insafuhrmann insafuhrmann left a comment

Choose a reason for hiding this comment

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

Thank you very much for your work on this @JohannesMeierSE. This looks good to me, I have added a few detail remarks. There are a few things to check on at a later time as we discussed in our Typir meeting today (e.g. the suggestions by Markus constructor use, initializeWorkspace, eagerload etc.).

examples/lox/src/language/type-system/lox-type-checking.ts Outdated Show resolved Hide resolved
examples/lox/src/language/type-system/lox-type-checking.ts Outdated Show resolved Hide resolved
packages/typir-langium/src/features/langium-caching.ts Outdated Show resolved Hide resolved
packages/typir-langium/src/typir-langium.ts Outdated Show resolved Hide resolved
packages/typir/src/features/inference.ts Outdated Show resolved Hide resolved
packages/typir/src/kinds/function-kind.ts Outdated Show resolved Hide resolved
packages/typir/src/kinds/function-kind.ts Show resolved Hide resolved
packages/typir/src/typir.ts Show resolved Hide resolved
@JohannesMeierSE
Copy link
Collaborator Author

Thanks a lot for your helpful review @insafuhrmann!

I pushed the changes and will merge it on main.

There are a few things to check on at a later time as we discussed in our Typir meeting today (e.g. the suggestions by Markus constructor use, initializeWorkspace, eagerload etc.).

You are completely right, some fine-tuning is still required, which I will do in a future PR.

@JohannesMeierSE JohannesMeierSE merged commit 0c27c29 into main Oct 16, 2024
2 checks passed
@JohannesMeierSE JohannesMeierSE added this to the v0.1 milestone Oct 29, 2024
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