Skip to content

Commit 25a39e4

Browse files
committed
Significant improvements to parser error handling
1 parent 8c8cc4f commit 25a39e4

File tree

9 files changed

+144
-66
lines changed

9 files changed

+144
-66
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#
2828

2929
# Delphi compiler-generated binaries (safe to delete)
30+
*.exe
3031
*.dll
3132
*.bpl
3233
*.bpi

Rhodus_Version_3/OldTests/funcCall.rh

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ assertTrue (True);
33

44
// Tests to show that functions can return the different types
55

6+
67
function test
78
end
89

@@ -70,6 +71,7 @@ end;
7071
assertTrue (test_4() == 1.2);
7172

7273

74+
7375
function test_5()
7476
for i = 1 to 10 do
7577
if i == 5 then
@@ -293,3 +295,4 @@ end;
293295
assertTrue (repeatString(5, "ha") == "hahahahaha");
294296

295297
println ()
298+
0 Bytes
Binary file not shown.

Rhodus_Version_3/SampleScripts/qsort.rh

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ end
4343
// Driver code to test above
4444
numbers = {12, 7, 13, 5, 6}
4545
QSort(numbers, 0, lists.len (numbers) - 1)
46-
res = assertTrueEx (numbers == {5, 6, 7, 12, 13}
46+
res = assertTrueEx (numbers == {5, 6, 7, 12, 13})
4747
if res == "." then
4848
println("----PASS----")
4949
else

Rhodus_Version_3/SampleScripts/quicksort.rh

-25
This file was deleted.
Binary file not shown.

Rhodus_Version_3/uBuiltInOS.pas

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface
1414
Uses SysUtils, Classes, uLibModule, System.Diagnostics;
1515

1616
const
17-
RHODUS_VERSION : string = '3.0';
17+
RHODUS_VERSION : string = '3.0.0.3';
1818

1919
type
2020
TBuiltInOS = class (TModuleLib)
@@ -73,7 +73,7 @@ procedure TBuiltInTime.getTimeSeconds (vm : TObject);
7373
var icount1 : Int64;
7474
begin
7575
QueryPerformanceCounter(icount1);
76-
TVM (vm).push (trunc (1000*icount1/lFreq));//System.Classes.TThread.GetTickCount());
76+
TVM (vm).push (trunc (1000*icount1/lFreq));
7777
end;
7878

7979

0 commit comments

Comments
 (0)