bafolts / plantcode

Provides a javascript utility to generate code in various languages given a plantuml class diagram.
https://segmentationfaults.com/plantcode
MIT License
217 stars 42 forks source link

plantuml-code-generator can't handle comments #8

Closed sruehl closed 8 years ago

sruehl commented 8 years ago

Following plant file fails:

  @startuml
  ' this is a comment
  class A
  class B
  A --|> B
  @enduml

with message:

Error parsing input file: 
SyntaxError: Expected "@enduml", "abstract ", "class ", "hide empty members", "namespace ", "package ", "setpropname.*", "skinparam", "title ", [ \t], [#], [+], [-], [A-Za-z_], [\n] or [\r\n] but "'" found.

Tested with upstream code

bafolts commented 8 years ago

This is probably due to the comment tag, I can fix this within the week. Will close this issue when completed.

bafolts commented 8 years ago

This should be fixed by

https://github.com/bafolts/plantuml-code-generator/commit/d085f96fd760ebfc4be5d2f73cab5754ec069e6d

bafolts commented 8 years ago

I added an integration test with the sample file you provided. You should be good to go. Thanks for the help.