EBNF - Perserve the order of element

+3 votes
asked Dec 4, 2022 in Wanted features by The-Lu (76,620 points)

Hello PlantUML team,

  • Why the order is not persevered?

Test:

@startebnf
title Test or group order
test-grp-order = (one, two), three;
@endebnf


Thanks for the enhancement,
Regards.

related to an answer for: Could we add syntax diagrams?
commented Oct 10, 2024 by The-Lu (76,620 points)

Fixed by EBNF concatenation order on V1.2024.8

Thank to PlantUML team.

2 Answers

0 votes
answered Oct 10, 2024 by The-Lu (76,620 points)
 
Best answer

Fixed by EBNF concatenation order on V1.2024.8

Thank to PlantUML team.

0 votes
answered Dec 5, 2022 by Todd Musheno (2,680 points)
I think the title is sort of not part of the ebnf, its the document title... used in other diagrams.

Sort of like styling and such.

Could be wrong.
commented Dec 5, 2022 by The-Lu (76,620 points)

Hello T.,

  • Could you precise your answer?

Here is a minimal example (without title):

@startebnf
a = (one, two), three;
b = (one (* 1 *), two (* 2 *)), three (* 3 *);
@endebnf

Regards.

commented Dec 14, 2022 by Todd Musheno (2,680 points)
You are correct, that seems broken.
...