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

fe/me: always use .fum file as input for middle end #2817

Merged
merged 4 commits into from
Mar 28, 2024

Conversation

michaellilltokiwa
Copy link
Member

Since errors can not be written to fum file, I needed to add a Errors.showAndExit() after new FrontEnd()

Since errors can not be written to fum file, I needed to add a `Errors.showAndExit()` after `new FrontEnd()`
Copy link
Member

@fridis fridis left a comment

Choose a reason for hiding this comment

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

This looks very promising. The hard part is to get rid of the awful dependency from Clazz to SrcModule.
In the current version of your solution, you instead introduce a dependency from Clazz to Module. I first thought this would introduce a cyclic dependency, but it does not. Nevertheless, it might be better to have a dedicated class fe.FeatureLookup or similar that contains only the essential methods needed in air to make it easier to change this if needed. Maybe FeatureLookup could be just an interface that is implemented by Module.

@michaellilltokiwa michaellilltokiwa marked this pull request as ready for review March 28, 2024 09:29
Copy link
Member

@fridis fridis left a comment

Choose a reason for hiding this comment

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

Very nice. Just two minor suggestions to satisfy my obsession with vertical alignment.

src/dev/flang/tools/Fuzion.java Outdated Show resolved Hide resolved
src/dev/flang/tools/Fuzion.java Outdated Show resolved Hide resolved
michaellilltokiwa and others added 2 commits March 28, 2024 14:14
Co-authored-by: Fridtjof Siebert <48821596+fridis@users.noreply.github.com>
Co-authored-by: Fridtjof Siebert <48821596+fridis@users.noreply.github.com>
@michaellilltokiwa michaellilltokiwa merged commit ca3be0b into tokiwa-software:main Mar 28, 2024
3 checks passed
@michaellilltokiwa michaellilltokiwa deleted the issue/2411 branch March 28, 2024 12:14
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.

None yet

2 participants