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

Syntax Parsing Failure - Accessing an Attribute on a Dereferenced Pointer Returned from a Method Doesn't Work #93

Closed
engineerjoe440 opened this issue Nov 3, 2023 · 1 comment · Fixed by #94
Assignees
Labels
bug Something isn't working grammar

Comments

@engineerjoe440
Copy link
Collaborator

Ok... here's yet another interesting one...

filename := _directoryFileList.Item(_i)^.ToString();
                                        ^
Expected one of:
        * LOGICAL_AND_THEN
        * LOGICAL_XOR
        * LOGICAL_OR
        * MULTIPLY_OPERATOR
        * LOGICAL_OR_ELSE
        * EQUALS_OP
        * SEMICOLON
        * ASSIGNMENT
        * LOGICAL_AND
        * ADD_OPERATOR
        * COMPARE_OP

Seems like blark doesn't like the fact that we're accessing some attribute from whatever that dereferenced structure is supposed to be.

Thank you for all of your help and welcomeness, as ever!

@klauer klauer added bug Something isn't working grammar labels Nov 3, 2023
@klauer klauer self-assigned this Nov 7, 2023
@klauer
Copy link
Owner

klauer commented Nov 7, 2023

Turns out this is a bit of an oversight from #55 - chained function calls should have been supported at the expression level as well as at the statement level.

PR on the way...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working grammar
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants