Skip to content
Discussion options

You must be logged in to vote

@msujew I figured out to my own references issue. The recursive statement at (nextStep=StepCSTemp)? which made the AST at firstStep nested. Simply deleting it and modifying several relating parts solved the problem. The ambiguity have nothing to do with this tho.

Changing from this:

(stepCS1=UCStepCS | stepCS2=RejoinStepCS | stepCS3=ActStepCS)
(altFlows+=AltFlowCS)*
(nextStep=StepCSTemp)?

AltFlowCS:
	'altStep' (name=UnrestrictedName)? 'at' baseStep=UnrestrictedName
		('description' '=' description=STRING)?
		'when'
			condition=SnapshotPatternCS
		'end'
		altStep=StepCS
	'end'
;

To this:

(stepCS1+=UCStepCS | stepCS2+=RejoinStepCS | stepCS3+=ActStepCS)* //(* or + is acceptable)
(altFlows…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@idiosyncrasy00
Comment options

@msujew
Comment options

@idiosyncrasy00
Comment options

@msujew
Comment options

Comment options

You must be logged in to vote
1 reply
@msujew
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by idiosyncrasy00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants