hcl/lib2/h3-trees.adb

40 lines
753 B
Ada
Raw Normal View History

2021-12-08 15:43:33 +00:00
with Ada.Unchecked_Deallocation;
2021-12-05 16:13:36 +00:00
2021-12-11 15:57:06 +00:00
with ada.text_io;
2021-12-05 16:13:36 +00:00
package body H3.Trees is
2021-12-11 15:57:06 +00:00
procedure New_Node (Tr: in out Tree) is
2021-12-08 15:43:33 +00:00
N: Node_Pointer;
begin
2021-12-11 15:57:06 +00:00
--N := new Node'(Code => NODE_VOID, Next => null );
N := new Node;
N.all := (Code => NODE_VOID, Next => Null);
2021-12-08 15:43:33 +00:00
N.Next := Tr.Top;
Tr.Top := N;
2021-12-11 15:57:06 +00:00
ada.text_io.put_line ("new node...");
2021-12-08 15:43:33 +00:00
end New_Node;
2021-12-05 16:13:36 +00:00
procedure Free_Node (Tr: in out Tree; N: in out Node) is
begin
--case N.Code is
-- when NODE_...
--end case;
null;
end Free_Node;
2021-12-08 15:43:33 +00:00
-- ------------------------------------------------------------------
2021-12-11 15:57:06 +00:00
overriding procedure Initialize (Tr: in out Tree) is
2021-12-08 15:43:33 +00:00
begin
null;
end Initialize;
2021-12-11 15:57:06 +00:00
overriding procedure Finalize (Tr: in out Tree) is
2021-12-08 15:43:33 +00:00
begin
null;
end Finalize;
2021-12-05 16:13:36 +00:00
end H3.Trees;