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

Allow variables to overload functoins #82

Open
smyrman opened this issue May 20, 2022 · 2 comments
Open

Allow variables to overload functoins #82

smyrman opened this issue May 20, 2022 · 2 comments

Comments

@smyrman
Copy link

smyrman commented May 20, 2022

Is it be possible to configure a language so that variable names takes precedence over functions?

Use case: for a system that stores expressions, allow adding new functions to the language without breaking backwards-compatibility.

Exmaple: for a language with function sin, in the expresison sin + b -- treat sin as variable instead of a functoin if present.

@smyrman
Copy link
Author

smyrman commented May 20, 2022

FYI, we do got a work-around that we find acceptable, which is to define a new language on the fly, with each function added tot the language only if there are no input variables with the same name.

@generikvault
Copy link
Collaborator

Hi,
gval is not under activly development by paessler ag. I'm accepting merge request and try to answer the issues as an side project. As far as I know this isl only possible with replacing the Ident Expansion.

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

2 participants