Skip to content

Conversation

bjodah
Copy link
Contributor

@bjodah bjodah commented Feb 8, 2022

This is not working yet. Any feedback on approach/what's missing is of course much appreciated.

OK, so tests pass locally. I had to add a token for Piecewise to special case the parsing of list-of-pairs. Let me know what you think.

Copy link
Contributor Author

@bjodah bjodah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*outdated comment*

https://github.com/symengine/symengine/pull/1882/files#diff-ab3976f9753d1b564643de57629491911add9c383c119f7c29705665366a3cdeR928

this is now accepted by the parser, but the dynamic cast too Boolean fails, I guess the parser is going bottom up and has a partial match on this argument since I added "epair" to the parser. Not sure how to constrain the parser. Add a designated token for Piecewise in the tokenizer?

Copy link
Contributor

@rikardn rikardn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is looking good

@isuruf isuruf merged commit c4b5329 into symengine:master Feb 16, 2022
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

Successfully merging this pull request may close these issues.

3 participants