Add !diagram to preprocessor to define de type of diagram

0 votes
asked Jun 1, 2017 in Wanted features by giflw (200 points)
HI

 

I think we could add a preprocessor instruction to set the type of diagram, like this:

!diagram SEQUENCE

So, the parser could use this information to validate the syntax and generate the diagram, and the type of the diagram would become clear from the begenning to the developer too. This could be optional flag, but could be usefull to reduces the parsing time.

This instruction could be defined to be at first line of the diagram:

@startuml
!diagram CLASS
......
@enduml

 

Best regards

Guilherme Weizenmann

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...