JesseEisen / doteasy

this is a dot wrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

doteasy

This is a easy script to generate a dot script. The goal of this tool is to generate different type of picture. like: astautoamta,finite state machine, sequence chart and so on.

current situation

Now, it can generate ast. And the other types will be added. And the code is mess now, it looks ugly. It will be made up later.

usage

First, you need install lex and yacc. If you do so, just use make to generate executable binary. The easy script of ast looks like:

#ast:LR

mul:"mul(*)"
add:"add(+)"

add -> 3
add -> 4
mul -> add
mul -> 5

Then use the command: ./aste < ast | dot -Tpng -o ast.png to generate the picture:

ast

More examples see the example folder.

License

(The MIT License)

Copyright (c) 2018 JesseChen lkchan0719@gmail.com

About

this is a dot wrapper


Languages

Language:Yacc 36.1%Language:C 33.3%Language:Lex 25.3%Language:Makefile 5.4%