Skip to main content

module salix::mermaid::FlowChart

rascal-0.40.17
salix-contrib-0.2.7

Usage

import salix::mermaid::FlowChart;

Source code

http://github.com/usethesource/salix-contrib/src/main/rascal/salix/mermaid/FlowChart.rsc

Dependencies

import salix::mermaid::Mermaid;
import String;
import Node;

alias S

void(str, void(N, E))

alias FL

void(N, E, S)

alias N

void(Shape, str, str)

alias E

void(str, str, str, str)

data Dir

data Dir  
= td()
| bt()
| lr()
| rl()
;

data Shape

data Shape  
= square()
| round()
| stadium()
| sub()
| cyl()
| circ()
| asym()
| rhombus()
| hexa()
| paral()
| altParal()
| trap()
| circc()
;

function label2shape

str label2shape(Shape shape, str txt)

function flowChart

void flowChart(str flname, str title, Dir dir, FL block)