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

Please help to parser IF function in excel formula #384

Open
ericnature opened this issue Jan 25, 2019 · 4 comments
Open

Please help to parser IF function in excel formula #384

ericnature opened this issue Jan 25, 2019 · 4 comments

Comments

@ericnature
Copy link

For example, IF(A1<>"",A1-1,""). So I want to skip parsing expression 'A1-1' if A1 is empty. How can I do this in jison?

@Sluchik
Copy link

Sluchik commented Feb 2, 2020

Hi, @ericnature

I am trying to find the solution with the "IF" statement too. Do you have any updates?

@ericnature
Copy link
Author

No. Someone suggested that parser from top to bottom be good to solve it. But Jison is from bottom to top parser.

@Sluchik
Copy link

Sluchik commented Feb 4, 2020

Thank @ericnature for respond. Do you know some parser from top to bottom which will be suitable for the current case? Currently, I am looking for the best one.

@ericnature
Copy link
Author

It is said that mid-rule in bison would help. But I did test it. Please refer: https://stackoverflow.com/questions/27160831/how-to-create-a-short-circuit-evaluation-in-bison-using-mid-rules-action

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