Language definition

+1 vote
asked Dec 23, 2016 in Bug by Serge Wenger Work (15,620 points)
I use "java -jar plantuml.jar -language" with version 8053 to obtain all what I need to colorize syntax in an editor.
 
I see that types "file, package, rectangle and queue" are missing.
I see that keywords "@startdot, @enddot, @startsalt, @endsalt" are missing.
pragma and so on are also missing
 
I try to create a simple example with all types and it is not working:
@startuml
abstract abstract
actor actor
agent agent
artifact artifact
boundary boundary
card card
class class
cloud cloud
component component
control control
database database
entity entity
enum enum
folder folder
frame frame
interface  interface
node node
object object
participant participant
rect rect
state state
storage storage
usecase usecase
@enduml
 
I receive the following error:
Use 'allow mixing' if you want to mix classes and other UML elements.
 
I add allow_mixing
@startuml
allow_mixing
abstract abstract
actor actor
agent agent
artifact artifact
...
 
I receive the following error:
agent- agent
 
Thanks for your work on this amazing software
 

1 Answer

0 votes
answered Jan 16, 2017 by plantuml (294,960 points)

Thanks for the feedback, and sorry about the delay!
We've started to work on this with last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

The following example is working:

@startuml
allow_mixing
abstract abstract
actor actor
usecase usecase
agent agent
artifact artifact
boundary boundary
'card card
class class
cloud cloud
component component
control control
database database
entity entity
enum enum
folder folder
frame frame
interface  interface
node node
object object
'participant participant
'rect rect
rectangle rectangle
'state state
storage storage
@enduml


We still have issues for:
- card: to be checked why
- participant: this syntax is specific to sequence diagram, not sure that it will be supported here
- rect: we prefer use "rectangle" instead now
- state: not working yet. Do you really need it ?
 

commented Jan 16, 2017 by Serge Wenger Work (15,620 points)
Thanks for modification. I do some check and with all types, there is still 3 bugs (card, file and queue)
@startuml
Title All types
allow_mixing
abstract abstract
actor actor
agent agent
artifact artifact
boundary boundary
'Bug card card
class class
cloud cloud
component component
control control
database database
entity entity
enum enum
'Bug file file
folder folder
frame frame
interface  interface
node node
object object
package package
'sequence diagram participant participant
'Bug queue queue
rectangle rectangle
'State diagram state state
storage storage
usecase usecase
@enduml

Withh all components there is only the "card bug":
@startuml
Title All components
actor actor
agent agent
artifact artifact
boundary boundary
'Bug card card
cloud cloud
component component
control control
database database
entity entity
file file
folder folder
frame frame
interface  interface
node node
package package
queue queue
rectangle rectangle
storage storage
usecase usecase
@enduml
commented Jan 16, 2017 by plantuml (294,960 points)
commented Jan 17, 2017 by Serge Wenger Work (15,620 points)
All is OK. Thanks
commented Jan 17, 2017 by plantuml (294,960 points)
We have also added "state" in last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar
Regards
commented Jan 17, 2017 by Serge Wenger Work (15,620 points)
State is OK. Thanks
commented Apr 13, 2018 by Potherca (430 points)
edited Apr 13, 2018 by Potherca
For the sake of completion, all components now work except for `participant`.
commented Apr 16, 2018 by Serge Wenger Work (15,620 points)
As explained before by plantuml:
- participant: this syntax is specific to sequence diagram, not sure that it will be supported here
commented Aug 27, 2020 by The-Lu (63,920 points)

Hello all,

We can now add:

The doc. is updated accordingly:

Perhaps add them in plantuml -language output...

If that can help,
Regards,
Th.

...