Skip to content

Commit 3407da2

Browse files
committed
Added gif videos
1 parent 5cae1b8 commit 3407da2

File tree

5 files changed

+3
-14
lines changed

5 files changed

+3
-14
lines changed

Images/ListsAndStrings.gif

6.47 MB
Loading

Images/basics.gif

8.87 MB
Loading

Images/demo1.gif

-6.21 MB
Binary file not shown.

Rhodus_Version_3/uAST.pas

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// email: hsauro@gmail.com
1010

1111

12+
// Defines the Abstract Syntax Tree. All nodes are derived from TASTNode
13+
1214
interface
1315

1416
Uses SysUtils, Classes, Generics.Collections, uASTNodeType, uListObject;
@@ -337,7 +339,6 @@ implementation
337339
Uses StrUtils, RTTi;
338340

339341

340-
341342
procedure TChildNodes.freeChildNodes;
342343
begin
343344
for var i := self.count - 1 downto 0 do
@@ -449,18 +450,6 @@ constructor TASTSlice.Create (lower, upper : TASTNode);
449450

450451
destructor TASTSlice.Destroy;
451452
begin
452-
// ntSlideEqual if both nodes point to the same ASTNode
453-
// Therefore only free one of them
454-
//if upper.nodeType = ntSliceEqual then
455-
// begin
456-
// lower.Free;
457-
// exit;
458-
// end
459-
//else
460-
// begin
461-
// lower.free;
462-
// upper.free;
463-
// end;
464453
lower.free;
465454
upper.free;
466455
inherited;

VirtualMachine/uListObject.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ constructor TListMethods.Create;
130130
methodList.Add(TMethodDetails.Create ('append', 1, 'Append the element to the list: var.append (a, 3.14)', append));
131131
methodList.Add(TMethodDetails.Create ('remove', 1, 'Remove an element from a list with given index: var.remove (4)', remove));
132132
methodList.Add(TMethodDetails.Create ('sum', 0, 'Find the sum of values in a list. var.sum ()', getSum));
133-
methodList.Add(TMethodDetails.Create ('pop', 1, 'Remove the last element from a list: var.pop (list)', removeLastElement));
133+
methodList.Add(TMethodDetails.Create ('pop', 0, 'Remove the last element from a list: var.pop ()', removeLastElement));
134134
methodList.Add(TMethodDetails.Create ('max', 0, 'Find the maximum value is a 1D list of values: var.max ()', getMax));
135135
methodList.Add(TMethodDetails.Create ('min', 0, 'Find the minimum value is a 1D list of values: var.min ()', getMin));
136136

0 commit comments

Comments
 (0)