From de6c76cdb9610856b9252c5ab80bd4e72882b33d Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Tue, 9 Nov 2010 12:53:04 +0100 Subject: add semantic_model --- uml/Makefile | 6 ++++-- uml/semantic_model.dot | 14 ++++++++++++++ uml/semantic_model.png | Bin 0 -> 24345 bytes 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 uml/semantic_model.dot create mode 100644 uml/semantic_model.png (limited to 'uml') 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 new file mode 100644 index 0000000..e222ffa Binary files /dev/null and b/uml/semantic_model.png differ -- cgit v1.2.3