02.10.2012 Views

5 Graph Description Language (GDL) - Absint

5 Graph Description Language (GDL) - Absint

5 Graph Description Language (GDL) - Absint

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 27: Example 11, tree layout, treefactor: 0.9<br />

Example 11: Syntax Tree<br />

01 graph: {<br />

02 title: "Typed Syntax Tree"<br />

03 node: { title:"503160" label: "Identifier\ntst3 (0)" }<br />

04 node: { title:"503240" label: "Identifier\nx (0)" }<br />

05 node: { title:"502952" label: "INTEGER" }<br />

06 node: { title:"503304" label: "VarDecl" }<br />

...<br />

29 node: { title:"T0" label: "no type" }<br />

30 node: { title:"T1" label: "no type" }<br />

31 node: { title:"T2" label: "int" }<br />

...<br />

57 edge: { source:"503304" target:"503240" }<br />

58 edge: { source:"503304" target:"502952" }<br />

...<br />

83 nearedge: { source:"503160" target:"T0" linestyle: dotted }<br />

84 nearedge: { source:"503240" target:"T1" linestyle: dotted }<br />

85 nearedge: { source:"502952" target:"T2" linestyle: dotted }<br />

...<br />

110 }<br />

61

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!