Learning to parsing and to be mini compiler for small language
- (edit file "program.txt")
- Isi program yang ingin dites.
begin
input(z) {menerima masukan z berupa nilai integer}
do
if (z<10) then
begin
a=z*2
output(a)
end
else
begin
output(z*10)
end
input(z)
while (z < 999)
end
jika end dihilangkan