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

Expand on custom functions #25

Open
FEDE0D opened this issue May 18, 2020 · 4 comments
Open

Expand on custom functions #25

FEDE0D opened this issue May 18, 2020 · 4 comments
Labels
enhancement Indicates new feature requests

Comments

@FEDE0D
Copy link

FEDE0D commented May 18, 2020

Currently we have only the option to create custom functions and use them on manually created expressions.
If we want to use them on a parse expression, it is currently not supported.
For example, I need to add a min & max operations (IDK why they are not included by default) and I cannot use them on parsed expressions.
It would be useful if we could add custom Tokens into the lexer.

@S-Man42
Copy link

S-Man42 commented Jun 12, 2020

+1 on this! :)

I need several custom functions within the parser, too.

@fkleon fkleon added the enhancement Indicates new feature requests label Jul 24, 2020
@S-Man42
Copy link

S-Man42 commented Jul 27, 2021

Any news on that? I'd really appreciate that.

@fkleon
Copy link
Owner

fkleon commented Jul 31, 2021

The existing CustomFunction class isn't super useful right now for the use case you're after.

Have a look at #54 which introduces a facility to specify your own Dart handler code for functions, and also adds parser support.
Would that solve your issue?

@S-Man42
Copy link

S-Man42 commented Jul 31, 2021

Well, sounds interesting. Will play around with it once it is merged and released... Maybe that might help me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

3 participants