PiotrJustyna / drakon-renderer

(string -> svg drakon diagram) type of thing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

drakon-renderer

Haskell drakon renderer.

troubleshooting mode off

diagram

troubleshooting mode on

diagram

syntax

Proposed input syntax to be converted to diagram images:

Title t "title - description"
Action a1 "action - description"
End e "end - description"

t > a1
a1 > e

This would render something like the following mermaid:

stateDiagram-v2
state "title - description" as title
state "action - description" as action1
state "end - description" as end

title --> action1
action1 --> end
Loading

So two sections:

  • icon definitions
  • icon connections

But this is subject to change.

terminology

  • title - first step of a diagram
  • end - last step of a diagram
  • action - "do X" non-branching action, basic building block of a diagram
  • question - branching step with two possible outcomes:
    • yes
    • no

source 1

source 2

development environment

command description
./host.sh starts development environment
./build.sh builds and lints code
./run.sh runs code
hlint . scans the whole current directory with hlint
exit terminates development environment

resources

About

(string -> svg drakon diagram) type of thing

License:MIT License


Languages

Language:Haskell 98.5%Language:Shell 1.5%