- Clone the repo
- Go to dist\Parser_class folder
- Place your Tiny syntax in testCase.txt file
- Double click on Parsser_class file or ( open the dist\Parser_class folder in terminal and write ./Parser_class )
- Find and click SyntaxTree.png
Place your Tiny syntax in testCase.txt file
SyntaxTree.png
read x;
if 0 < x then
fact := 1;
repeat
fact := fact * x;
x := (x - 1)
until (x = 0)
write fact
end
x:= 2 ;
y := 3 ;
z := 5 ;
a := x+y+z ;
if z < 8 then
repeat
a:= a*2 ;
z:= z-1
until z = 0 ;
write a
else
read b;
if b = 1 then
wtite b*(x-y)
else
write a
end
end ;
write z

