EBNF - Perserve the order of element

+3 votes
asked Dec 4, 2022 in Wanted features by The-Lu (64,340 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?

1 Answer

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 (64,340 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.
...