view testproject/main.mod @ 28:47b7df514243

Moved Makefiles
author windel
date Wed, 28 Dec 2011 13:38:43 +0100
parents edd70006d3e4
children
line wrap: on
line source

module main;
var 
 a,b,c : integer;

procedure test(x:integer);
 var y,z:integer;
begin
  y := x * 3 + 2;
  z := x + y + a;
end test;

procedure add(a:integer; b:integer):integer;
 var 
  tmp : integer;
 begin
  tmp := a + b;
  return tmp
 end add;

begin
  a := 12;
  b := a * 12 + 33;
  c := a div b + a * b * 99;
end main.