Giter Site home page Giter Site logo

text-diagram's Introduction

TextDiagam is a web tool for drawing UML sequence diagram in pure text.

http://weidagang.github.com/text-diagram

Input:

object April Todd Monad
April->April: Prepare food for lunch.
space 5
note left of April: Lunch is ready.
April->Todd: Todd, what are you doing?
note right of Todd: @_@
Todd->April: Well...\nI'm programming.
space 5
April->Monad: How about you?
Monad->April: I'm reading book.
April->Monad: Good boy!
note right of Monad: ^_^


Output:

                +-------+                       +-------+   +-------+
                | April |                       | Todd  |   | Monad |
                +-------+                       +-------+   +-------+
                    |                               |           |
                    | Prepare food for lunch.       |           |
                    |------------------------       |           |
                    |                       |       |           |
                    |<-----------------------       |           |
                    |                               |           |
                    |                               |           |
                    |                               |           |
                    |                               |           |
                    |                               |           |
------------------\ |                               |           |
| Lunch is ready. |-|                               |           |
|-----------------| |                               |           |
                    |                               |           |
                    | Todd, what are you doing?     |           |
                    |------------------------------>|           |
                    |                               | ------\   |
                    |                               |-| @_@ |   |
                    |                               | |-----|   |
                    |                               |           |
                    |                       Well... |           |
                    |              I'm programming. |           |
                    |<------------------------------|           |
                    |                               |           |
                    |                               |           |
                    |                               |           |
                    |                               |           |
                    |                               |           |
                    |                               |           |
                    | How about you?                |           |
                    |------------------------------------------>|
                    |                               |           |
                    |                         I'm reading book. |
                    |<------------------------------------------|
                    |                               |           |
                    | Good boy!                     |           |
                    |------------------------------------------>|
                    |                               |           | ------\
                    |                               |           |-| ^_^ |
                    |                               |           | |-----|
                    |                               |           |

text-diagram's People

Contributors

airekans avatar clementm avatar noahp avatar weidagang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

text-diagram's Issues

Grammar railroad diagram

Looking the grammar at https://github.com/weidagang/text-diagram/blob/master/text-diagram/text-diagram.js and manually converting/simplifying it to an EBNFunderstood by https://www.bottlecaps.de/rr/ui we can get a nice railriad diagram (https://en.wikipedia.org/wiki/Syntax_diagram).

Copy the EBNF shown bellow on https://www.bottlecaps.de/rr/ui at the tab "Edit Grammar" then switch to the tab "View Diagram".

 program ::= statement*
 statement ::= object_declaration | message_statement | note_statement | space_statement
 object_declaration ::= "object" object_id EOS
 message_statement ::= object_id "->" object_id content? EOS
 note_statement ::= side "of" object_id content EOS
 space_statement ::= size
 object_id ::= ([a-z]|[A-Z]|[0-9]|_)+
 content ::= ":" text
 size ::= [0-9]+ //integer
 EOS ::= ';' | '\n' | EOF

Multi-thread support?

Does this tool give a way to depict multiple threads? If not, how difficult would it be to add this?

CJK handle in Chart

I think this is a feature request for CJK characters (twice size of Latin letters) display right.

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.