GithubHelp home page GithubHelp logo

isabella232 / plantuml-skinparam-parser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from potherca-blog/plantuml-skinparam-parser

0.0 0.0 0.0 93 KB

Quick and dirty grab-all-available-skinparam from the PlantUML source code.

License: GNU General Public License v3.0

PHP 100.00%

plantuml-skinparam-parser's Introduction

PlantUML skinparam parser

"Writing a really general parser is a major but different undertaking, by far the hardest points being sensitivity to context and resolution of ambiguity." ~ Graham Nelson

Quick and dirty script to parse all available skinparam from the PlantUML code base.

Introduction

PlantUML is a great tool for drawing UML diagrams. It supports many diagrams and has lots of features.

One such feature, skinparam allows changing the way diagrams look (or behave).

Sadly, PlantUML also has some shortcomings, mostly in terms of documentation.

The manual mentions skinparam and there is a command[1] to show a list of available skinparam but neither are complete.

This project offers a quick-and-dirty way of listing all available skinparam.

The full list is available in the build directory.

The list is created by parsing the Java code. The code that does this is written in PHP[2].

Usage

There is a full list of skinparam available in the build directory. There is also a list with skinparam default values.

At a later point, a file will be added that defines constants for the values rather than hard-coding them.

The simplest thing is to just use those files.

Parsing a list from the PlantUML code

To create a list, the following steps need to be taken:

  1. Download the PlantUML source-code
  2. Download this project
  3. Run the parser: ./bin/parse-skinparam <plantuml-source-directory>.
  4. ...
  5. Profit!

For instance:

cd /tmp
git clone https://github.com/plantuml/plantuml.git
git clone https://github.com/potherca-blog/plantuml-skinparam-parser.git

/tmp/plantuml-skinparam-parser/bin/parse-skinparam /tmp/plantuml/

Colophon

Footnotes

  1. java -jar plantuml.jar -language
  2. I did say "quick" and "dirty"

plantuml-skinparam-parser's People

Contributors

potherca avatar

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.