An interpreter to "Português Estruturado" written in Haskell
Português estruturado is an common pseudocode used in universities at Brasil to introduce computer engineering. To help studients understands better what happen with yours algorthimons was written this interpreter.
The syntax used in this interpreter was based in syntax used at school, and is like below.
algoritimo Teste
/* mult
line
coment */
var a logico; // line comment
var b real;
var c int;
inicio
b = 10 + -15.1 * -(2/3);
a = verdadeiro;
a = a ou falso;
//escreva(a);
c = 3;
escreva(falso ou falso);
escreva(a);
escreva(b+b);
escreva(c%2);
fimalgoritimo
cabal configure
cabal build
cabal install
PTEstruturado code-exemple.pe
Or
runghc Main.hs code-expemple.pe