[31m-- main is main file of main project written with Ada.[m
[31m-- Main is Copyright (C) 2025 Manuel De Girardi ; [m
[31m--[m
[31m--   This program is free software; you can redistribute it and/or modify[m
[31m--   it under the terms of the GNU General Public License as published by[m
[31m--   the Free Software Foundation; either version 2 of the License, or[m
[31m--   (at your option) any later version.[m
[31m--[m
[31m--   This program is distributed in the hope that it will be useful,[m
[31m--   but WITHOUT ANY WARRANTY; without even the implied warranty of[m
[31m--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the[m
[31m--   GNU General Public License for more details.[m
[31m--[m
[31m--   You should have received a copy of the GNU General Public License[m
[31m--   along with this program; if not, write to the Free Software[m
[31m--   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA[m
[31m--[m
[31m-- Date := "2025-06-04 18:32:28"[m
[31m-- Version := "0.0.0r"[m

[01;34mpackage[m [01;34mbody[m M[31m.[mStrings [01;34mis[m
   [01;34mprocedure[m [01;30mAdd_Line[m [31m([mSet [31m:[m [01;34min[m [01;34mout[m Wide_String_Set[31m;[m
		       Last [31m:[m [01;34min[m [01;34mout[m Line_Index_Range[31m;[m
		       Line [31m:[m [01;34min[m [32mWide_String[m[31m)[m [01;34mis[m           
   [01;34mbegin[m
      Last [31m:=[m Set[31m.[mLine_Last[31m;[m
      [01;34mif[m Last [31m=[m Set[31m.[mLines'Last [01;34mthen[m
	 [01;30mWide_Free[m [31m([mSet[31m.[m[01;30mLines[m [31m([m [35m1[m [31m)[m [31m);[m
	 [01;34mfor[m Line [01;34min[m [35m1[m[31m..[mLast [31m-[m [35m1[m [01;34mloop[m
	    Set[31m.[m[01;30mLines[m[31m([mLine[31m)[m [31m:=[m Set[31m.[m[01;30mLines[m [31m([mLine [31m+[m [35m1[m[31m);[m
	 [01;34mend[m [01;34mloop[m[31m;[m
	 Set[31m.[m[01;30mlines[m[31m([mLast[31m)[m [31m:=[m [01;34mnew[m [32mWide_String[m ' [31m([mLine[31m);[m
      [01;34melse[m
	 Set[31m.[m[01;30mLines[m[31m([mLast[31m+[m[35m1[m[31m)[m [31m:=[m [01;34mnew[m [32mWide_String[m ' [31m([mLine[31m);[m
	 Last [31m:=[m Last [31m+[m [35m1[m[31m;[m
      [01;34mend[m [01;34mif[m[31m;[m
      Set[31m.[mLine_Last [31m:=[m Last[31m;[m
   [01;34mend[m Add_Line[31m;[m
   
   
   [01;34mprocedure[m [01;30mSet_Free[m[31m([mSet [31m:[m [01;34min[m [01;34mout[m Wide_String_Set[31m)[m [01;34mis[m
   [01;34mbegin[m
      [01;34mfor[m Iter [01;34min[m Set[31m.[mLines ' [01;34mrange[m [01;34mloop[m
	 [01;30mWide_Free[m[31m([mSet[31m.[m[01;30mLines[m[31m([mIter[31m));[m
      [01;34mend[m [01;34mloop[m[31m;[m
      Set[31m.[mLine_Last [31m:=[m [35m0[m[31m;[m
   [01;34mend[m Set_Free[31m;[m

[01;34mend[m M[31m.[mStrings [31m;[m 
