The development notes for GibPascal 1.3 (currently Alpha)
Here is what has been completed:
o Added -lm flag to all compile scripts
o Made most functions not case sensitive.
Example: 'WriteLn', 'WRITELN', and 'writeln' are all treated the same.
Variables and reserved words continue to be case sensitive.
o Altered/expanded Math_set further.
o Now halt is POSIX in that 'halt;', 'halt(0);', and 'halt(1);' are all now valid
Any other value other than none, 0, or 1 will be ignored and return 1;.
o Added sub constant 'const' attribute to variables.
Handled differently than ISO Pascal.
GibPascal handles if variable is contant as an additional attribute of the variable.
Not a different data type as in ISO Pascal.
o Added nested begin/end sub of if/then
Example:
program MoreTestIfs
var TestInt : integer;
begin
TestInt := 5;
if TestInt = 5 then
writeln('this is a one line true');
if TestInt = 6 then
writeln('this is a one line false and never written');
if TestInt = 5 then
begin
writeln('Test line 1 true');
writeln('Test line 2 true');
writeln('Test line 3 true');
writeln('Test line 4 ture');
writeln('Last writeln before "end;"');
end;
if TestInt = 6 then
begin
writeln('Test line 1 False, not true and ignored');
writeln('Test line 2 false, not true and ignored');
writeln('Test line 3 false, not true and ignored');
writeln('Test line 4 false, not ture again');
end;
end.