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

Properties cannot be invoked directly on function return values #92

Open
cardillan opened this issue Apr 28, 2023 · 0 comments
Open

Properties cannot be invoked directly on function return values #92

cardillan opened this issue Apr 28, 2023 · 0 comments
Labels
parser Related to the ANTL4R grammar

Comments

@cardillan
Copy link
Owner

cardillan commented Apr 28, 2023

The following code doesn't compile:

getlink(index).enabled = false

It is necessary to rewrite it to

device = getlink(index)
device.enabled = false

Supporting direct property access will require updating ANTLR syntax.

@cardillan cardillan changed the title Properties cannot be called directly on function return values Properties cannot be invoked directly on function return values Apr 28, 2023
@cardillan cardillan added the parser Related to the ANTL4R grammar label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parser Related to the ANTL4R grammar
Projects
None yet
Development

No branches or pull requests

1 participant