Week 12. Articulating the tree, and some Applied Syntax CAS LX 522 Syntax I.
The syntax tree data structure used in jbvd algorithm
-
Upload
nicole-tryfona -
Category
Software
-
view
34 -
download
6
Transcript of The syntax tree data structure used in jbvd algorithm
![Page 1: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/1.jpg)
Syntax Tree Data Structure used in
JBVD – Java Bytecode Viewer &
Decompiler algorithm
![Page 2: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/2.jpg)
Syntax tree representation rules
• Every node represents a statement or the end of a
statement
• Each node has up to two children
• The left child is represented with a green arrow
• The right child is represented with a red arrow
• If a node lacks the left or right child, or even both
of them (the value is null), then they are not
represented at all
• Each node can have more than one parents
![Page 3: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/3.jpg)
do while
![Page 4: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/4.jpg)
Nested do whiles
![Page 5: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/5.jpg)
while
![Page 6: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/6.jpg)
Nested whiles
![Page 7: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/7.jpg)
if
![Page 8: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/8.jpg)
if - else
![Page 9: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/9.jpg)
if – else if - else
![Page 10: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/10.jpg)
Nested ifs (1)
![Page 11: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/11.jpg)
Nested ifs (2)
![Page 12: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/12.jpg)
Nested ifs (3)
![Page 13: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/13.jpg)
Nested ifs (4)
![Page 14: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/14.jpg)
do while - while
![Page 15: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/15.jpg)
do while - if - else
![Page 16: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/16.jpg)
while – do while
![Page 17: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/17.jpg)
while - if - else
![Page 18: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/18.jpg)
if – else – do while
![Page 19: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/19.jpg)
if – else - while
![Page 20: The syntax tree data structure used in jbvd algorithm](https://reader031.fdocuments.in/reader031/viewer/2022030304/5876d4361a28ab1d238b5325/html5/thumbnails/20.jpg)
switch