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 newline behaviour in parsers #229

Open
raehik opened this issue Jun 22, 2022 · 0 comments
Open

Improve newline behaviour in parsers #229

raehik opened this issue Jun 22, 2022 · 0 comments

Comments

@raehik
Copy link
Collaborator

raehik commented Jun 22, 2022

@RaoulHC noted in #228 that the ProgramUnit and Block parsing in F77 is written in a way that requires trailing newlines, which breaks for include-d files that don't end with a newline. In full parser context, it doesn't matter as much, because the different statements need to be on newlines, and the ProgramFile parser doesn't require a terminating newline. But include parsing works at the Block or ProgramUnit level.

Raoul fixed this for F77 (the only parser supporting includes currently) via improved newline behaviour. It'd be nice to have this for the other parsers too. Should only involve adapting the work for the free-form parsers.

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

No branches or pull requests

1 participant