English 中文(简体)
Language to create flowcharts [closed]
原标题:

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 8 years ago.

This seems like something which must have been answered before, but I can t find anything appropriate in the question archives. Basically, I m looking for a little Domain Specific Language to create flowcharts. I m terrible at graphic design and making things look nice, and I d really like a langauge where I could write something in code and it would produce a pretty flowchart. I ve come across GraphViz, but it seems more suited to creating things like Finite State Machine diagrams, rather than process flowcharts. It also doesn t have the simple DSL-style front-end that would allow me to easily work it.

Any ideas?

问题回答

Have a look at PlantUml - in particular their Activity State diagrams.

As an example (from their site) produces the image below:

@startuml

start

if (graphviz installed?) then (yes)
  :process all
diagrams;
else (no)
  :process only
  __sequence__ and __activity__ diagrams;
endif

stop

@enduml

enter image description here

MindFusion offers components for diagramming that you can access programmatically.

They offer components for WPF and WinForms:

In the past I ve used their WPF component on a DSL editor project. Based on Toolbox drag-and-drops in the DSL editor, WPFDiagram was called to create shapes on the Drawing Surface.





相关问题
Treetop: How to make combined rule?

I want to make a simple JSP parser by using Treetop. Now, I have the following problem: My basic grammar for starting is: grammar Jspgrammar rule jspToken <% end rule ...

Language neutral custom tool

I m working on a DSL tool, and for this tool, there exists a custom code generation tool that creates output files. Currently, this tool is registered with C# using a RegistrationAttribute on the ...

How should I construct a finance DSL?

I ve decided to build a database tracking the credit card offers I get in the mail, and one confounding factor has been how to represent the offers. With minimum finance charges and variable rates and ...

How do I build a domain-specific query language?

I have a biology database that I would like to query. There is also a given terminology bank I have access to that has formalizable predicates. I would like to build a query language for this DB using ...

Stop and continue while evaluation an expression tree

At the office, we ve applied simple Domain Specific Languages (DSLs) to several problem domains we encountered. Basically, we parse (lex/yacc) the custom script into an expression tree. Every node ...

Language to create flowcharts [closed]

This seems like something which must have been answered before, but I can t find anything appropriate in the question archives. Basically, I m looking for a little Domain Specific Language to create ...

热门标签