From 193ee66bd2da0461ed4f44ec142618d00040710b Mon Sep 17 00:00:00 2001 From: WinChua Date: Sun, 24 Jun 2018 19:46:37 +0800 Subject: [PATCH] Add Self-Contain Example Add an example which contains all the grammar inside it. --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index c4457a7..2785a79 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,27 @@ into ![Sample generated UML diagram](https://bramp.github.io/js-sequence-diagrams/images/sample.svg) + +A Grammar Self-Contain Example + + title : title : hello + participant "participant example" + participant A + participant B + participant C + A -> B : "A->B" + A --> C : "A-->C" + B -->> C: "B-->>C" + C ->> B : "C->>B" + note over A,C : "note over A, C" + note left of A: "note left of A" + note right of C: "note right of C" + note over B: "note over B" + +into + +![Grammar_self_contain_example](https://winchua.github.io/images/self_contain.bmp) + Requirements ------------ You will need [Snap.svg](http://snapsvg.io/), [Web Font Loader](https://github.com/typekit/webfontloader) (if you wish to use custom fonts), [underscore.js](http://underscorejs.org/) (or [lodash](https://lodash.com/)), and optionally [jQuery](https://jquery.com/).