Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Language definition

+1 vote
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
 
asked Dec 23, 2016 in bug by Serge Wenger Work (3,940 points)

1 Answer

0 votes

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 ?
 

answered Jan 16 by plantuml (124,290 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
All is OK. Thanks
We have also added "state" in last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar
Regards
State is OK. Thanks
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...