Last active
August 29, 2015 14:15
-
-
Save junr03/58e06c096bcc6120934d to your computer and use it in GitHub Desktop.
Compilers Assignment 3 Test 0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thanks to Peter H. Frohlich |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
strict digraph CST { | |
L0 [label="Program",shape=box] | |
L1 [label="PROGRAM",shape=diamond] | |
L0 -> L1 | |
L2 [label="X",shape=diamond] | |
L0 -> L2 | |
L3 [label=";",shape=diamond] | |
L0 -> L3 | |
L4 [label="Declarations",shape=box] | |
L0 -> L4 | |
L5 [label="VarDecl",shape=box] | |
L4 -> L5 | |
L6 [label="VAR",shape=diamond] | |
L5 -> L6 | |
L7 [label="IdentifierList",shape=box] | |
L5 -> L7 | |
L8 [label="i",shape=diamond] | |
L7 -> L8 | |
L9 [label=":",shape=diamond] | |
L5 -> L9 | |
L10 [label="Type",shape=box] | |
L5 -> L10 | |
L11 [label="INTEGER",shape=diamond] | |
L10 -> L11 | |
L12 [label=";",shape=diamond] | |
L5 -> L12 | |
L13 [label="END",shape=diamond] | |
L0 -> L13 | |
L14 [label="X",shape=diamond] | |
L0 -> L14 | |
L15 [label=".",shape=diamond] | |
L0 -> L15 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Program | |
PROGRAM@(0, 6) | |
identifier<X>@(8, 8) | |
;@(9, 9) | |
Declarations | |
VarDecl | |
VAR@(11, 13) | |
IdentifierList | |
identifier<i>@(15, 15) | |
:@(16, 16) | |
Type | |
identifier<INTEGER>@(18, 24) | |
;@(25, 25) | |
END@(27, 29) | |
identifier<X>@(31, 31) | |
.@(32, 32) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROGRAM X; VAR i: INTEGER; END X. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment