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

Add grammar for alternative flow #167

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

havard024
Copy link

@havard024 havard024 commented Jan 8, 2017

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

screen shot 2017-01-08 at 11 12 49 am

@bramp
Copy link
Owner

bramp commented Mar 12, 2017

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)

@KeishaW
Copy link

KeishaW commented Jul 22, 2021

Will this be added soon?

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