Open knsv opened 5 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you are still interested in it, and it is still relevant, you can comment or remove the label to revive it.
This might not be quite as trivial as I had assumed; just installing the new package, jison-gho
, doesn't quite solve it as there seem to be some incompatibilities between this and the old package. I'm attempting to work my way through it, but not being familiar with jison, I don't know if I'll be able to resolve it.
Just wanted to leave a quick note that I haven't made any progress on this, and probably won't, in case anyone else is thinking about it.
I just had a look into that. This will contain a lot of breaking changes that could be problematic with features developed in other branches. I managed to resolve the first issues but the state diagram is creating this strange error
TypeError: yyvstack[(yysp - 1)].push is not a function
at Object.parser__PerformAction (src/diagrams/state/parser/stateDiagram.jison:865:28)
at Parser.parse (src/diagrams/state/parser/stateDiagram.jison:1882:40)
at Object.parse (src/diagrams/state/stateDiagram.spec.js:68:14)
Any idea what this could be @knsv? I have a rough idea but I had no deeper look into the state diagram language definition yet.
The corresponding PR has been closed due to the extreme age of the changes.
The current version of jison used by mermaid is not maintained. There is a fork with some 1000 more commits under its belt. Letys switch to that version instead.
https://github.com/GerHobbelt/jison