diff options
| author | Francois Perrad <francois.perrad@gadz.org> | 2010-11-09 12:53:04 +0100 |
|---|---|---|
| committer | Francois Perrad <francois.perrad@gadz.org> | 2010-11-09 12:53:04 +0100 |
| commit | de6c76cdb9610856b9252c5ab80bd4e72882b33d (patch) | |
| tree | 2c0e84b6f554bd619d19e7ce45d093cd317bdaf8 | |
| parent | rename abstract_syntax_tree (diff) | |
| download | spore-specifications-de6c76cdb9610856b9252c5ab80bd4e72882b33d.tar.gz | |
add semantic_model
| -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 |
