-
Notifications
You must be signed in to change notification settings - Fork 0
/
t2.txt
22 lines (15 loc) · 837 Bytes
/
t2.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
** This is a small code for verifying syntactic correctness of an empty driver and an empty module **
<<<driver program>>>
start
end
<<module empty>>
takes input[a:boolean];
start
end
** print the following message on the console
" Input source code is syntactically correct.........."
**
** Also print the parse tree in the format given in function description of printParseTree().[refer interface details]**
** The inorder traversal for an n‐ary tree can be seen as follows
Leftmost child ‐‐> parent node‐‐> remaining siblings (excluding the leftmost)**
** The above tree construction needs to be verified with manually created tree on paper for the above input using the given grammar. You can try using a A3 sized paper and draw the parse tree. work out the inorder traversal and verify your parser output **