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

Namelist without group name but with content incorrectly sets group as first variable. #121

Open
marshallward opened this issue Jul 26, 2020 · 0 comments

Comments

@marshallward
Copy link
Owner

marshallward commented Jul 26, 2020

This follow namelist should fail parsing, but does not:

&
    x = 1
/

It instead produces the following namelist:

Namelist([('x', Namelist([('x', 1)]))])

Our naive test for group name is insufficient, since we are still doing a blanket lookahead, and believe the first variable name is the group name.

This needs to be addressed, but may require a new parser which does not rely on persistent single-token lookahead.

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