Giter Club home page Giter Club logo

Comments (5)

bafolts avatar bafolts commented on July 21, 2024

Can you provide an example of the puml source that fails to execute? That way I can fix your case and add your case to the integration tests.

from plantcode.

noamtamim avatar noamtamim commented on July 21, 2024

This is from plantuml's samples:

@startuml
class User {
  .. Simple Getter ..
  + getName()
  + getAddress()
  .. Some setter ..
  + setName()
  __ private data __
  int age
  -- encrypted --
  String password
}

@enduml

And so is this:

@startuml
class Object << general >>
Object <|--- ArrayList

note top of Object : In java, every class\nextends this one.

note "This is a floating note" as N1
note "This note is connected\nto several objects." as N2
Object .. N2
N2 .. ArrayList

class Foo
note left: On last defined class

@enduml

from plantcode.

bafolts avatar bafolts commented on July 21, 2024

I added the first example to the tests file and updated the grammar to parse it properly.

https://github.com/bafolts/plantuml-code-generator/blob/0e4eeb9181504a3ee8243bc2f74c933ed80c272a/tests/comments-dots.pegjs

Will get to the notes one soon.

from plantcode.

noamtamim avatar noamtamim commented on July 21, 2024

Thank you very much for the quick response (and action!). I will test it soon with my real class diagram.

from plantcode.

bafolts avatar bafolts commented on July 21, 2024

I added support for the notes file you provided and added it as a test. I will close this issue time being. If you find any more issues feel free to post the sample input file.

https://github.com/bafolts/plantuml-code-generator/blob/master/tests/notes-file.pegjs

from plantcode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.