-
Notifications
You must be signed in to change notification settings - Fork 20
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
Extraneous brackets cause parsing for arithmetic operator error #246
Comments
Argh. This is surely caused by b335ac5 . I imagine it gets to the fortran-src/src/Language/Fortran/Parser/Fixed/Fortran77.y Lines 750 to 753 in 70c0456
But |
Works fine on commit 58b0de3 (immediately before the arg expr change) |
Why exactly is that parsed differently? Is there anything significant about bracketed arguments? |
In #203 we found some surprising cases where bracketing variables in Not too sure how to approach this immediately. Do we have to refactor to handle bracketed expressions in a more complex way? may I ask @dorchard if he has any insights...? |
Oh I was unaware of that too, that's a feature that introduces some unfortunate syntactical ambiguity. Not sure what the best way to handle that is. Obviously |
The following valid fortran fails to be parsed
Giving:
This seems to apply to all arithmetic operators (haven't tried other operators) and only if the brackets are on the left side.
The text was updated successfully, but these errors were encountered: