Logo inspired language, based on image generation. Each program has a 'pen' and commands to draw with it.
Made with Haskell for a project in the Translators and Interpreters course at Universidad Simon Bolivar. Made with the help of Alex and Happy.
Interpreter made by: Augusto Hidalgo and Genesis Kufatty
program
for k from 1 to 10 do
for i from 1 to 50 do
forward(1);
rotatel(1);
end;
for i from 1 to 90 do
forward(1);
rotater(1);
end;
end;
end;
program
with
do
for i from 1 to 100 do
forward(i * 2); # Traza una línea por 50 puntos
rotater(90); # Gira 90 grados sentido horario
end;
end;
end;
program
with
number l=100;
number nvertex = 5;
do
rotatel(1);
for i from 1 to nvertex do
forward(l);
rotatel(70);
forward(l);
rotater(70+360/nvertex);
end;
end;
end;
program
for k from 3 to 12 do
for i from 1 to k do
forward(60);
rotatel(360/k);
end;
end;
end;
program
with
number l=110, rep=360;
number nvertex = 5;
do
repeat rep times
rotater(1);
for i from 1 to nvertex do
forward(l);
rotatel(80);
forward(l);
rotater(80+360/nvertex);
end;
end;
end;
end;
program
for i from 1 to 17 do
forward(350);
rotater(360*8/17);
end;
end;