diff options
Diffstat (limited to '')
| -rw-r--r-- | uml/Makefile | 6 | ||||
| -rw-r--r-- | uml/semantic_model.dot | 14 | ||||
| -rw-r--r-- | uml/semantic_model.png | bin | 0 -> 24345 bytes |
3 files changed, 18 insertions, 2 deletions
diff --git a/uml/Makefile b/uml/Makefile index 4d35baa..006ee14 100644 --- a/uml/Makefile +++ b/uml/Makefile @@ -1,6 +1,8 @@ -abstract_syntax_tree.png: abstract_syntax_tree.dot - dot -T png -o $@ $< +all: abstract_syntax_tree.png semantic_model.png + +%.png: %.dot + dot -T png -o $@ $< clean: rm *.png diff --git a/uml/semantic_model.dot b/uml/semantic_model.dot new file mode 100644 index 0000000..cfafe92 --- /dev/null +++ b/uml/semantic_model.dot @@ -0,0 +1,14 @@ +digraph { + + node [shape=record]; + + "API" + [label="{\N|methods : map<string,Method>\lname : string\l}"]; + + "API" -> "Method" + [label="methods", dir=back, arrowtail=odiamond]; + + "Method" + [label="{\N|method : string\lpath : string\l\lauthentication : boolean\lbase_url : string\ldeprecated : boolean\ldescription : string\lexpected_status : array<number>\lform-data : map<string,string>\lformats : array<string>\lheaders : map<string,string>\loptional_params : array<string>\loptional_payload : boolean\lrequired_params : array<string>\lrequired_payload : boolean\lunattended_params : boolean\l}"]; + +} diff --git a/uml/semantic_model.png b/uml/semantic_model.png Binary files differnew file mode 100644 index 0000000..e222ffa --- /dev/null +++ b/uml/semantic_model.png |
