Add initial prototype.

This commit is contained in:
Rod Kay
2022-07-31 17:34:54 +10:00
commit 54a53b2ac0
1421 changed files with 358874 additions and 0 deletions

30
4-high/gel/source/gel.adb Normal file
View File

@@ -0,0 +1,30 @@
package body GEL
is
function to_Asset (Self : in String) return asset_Name
is
the_Name : String (asset_Name'Range);
begin
the_Name (1 .. Self'Length) := Self;
the_Name (Self'Length + 1 .. the_Name'Last) := [others => ' '];
return asset_Name (the_Name);
end to_Asset;
function to_String (Self : in asset_Name) return String
is
begin
for i in reverse Self'Range
loop
if Self (i) /= ' '
then
return String (Self (1 .. i));
end if;
end loop;
return "";
end to_String;
end GEL;