js-sequence-diagrams
js-sequence-diagrams copied to clipboard
Add grammar for alternative flow
Hi,
I'm interested in using alternative flow in this project and I'm willing to contribute to get there. I know there's an enhancement to add support to group signals together (#160), but I don't think I'll be able to solve that generic case as of yet. I'm thinking, by solving alternative flow, we'll have something that can be built on to solve the more generic case.
Below I've just tried to add grammar for supporting alternative flow, I would love some input on the grammar.
I'm trying to achive the following:
alt text1
A->B: text
B->A: text
else text2
A->B: text
else text3
A->B: text
end
Sorry for the slow reply!
Yes, that grammar looks fine to me. Please go ahead and update grammar.jison and add some tests
(the grammar.ebnf is used for drawing this diagram only)
Will this be added soon?