/usr/share/doc/libopentoken-doc/examples/wisi/wisi-prologue.adb is in libopentoken-doc 6.0b-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | -- Abstract :
--
-- Parse the prologue from Input_File
--
-- Copyright (C) 2012 - 2014 Stephen Leake. All Rights Reserved.
--
-- This program is free software; you can redistribute it and/or
-- modify it under terms of the GNU General Public License as
-- published by the Free Software Foundation; either version 3, or (at
-- your option) any later version. This program is distributed in the
-- hope that it will be useful, but WITHOUT ANY WARRANTY; without even
-- the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
-- PURPOSE. See the GNU General Public License for more details. You
-- should have received a copy of the GNU General Public License
-- distributed with this program; see file COPYING. If not, write to
-- the Free Software Foundation, 51 Franklin Street, Suite 500, Boston,
-- MA 02110-1335, USA.
pragma License (GPL);
with Ada.Text_IO; use Ada.Text_IO;
with Wisi.Utils; use Wisi.Utils;
procedure Wisi.Prologue
(Input_File : in Standard.Ada.Text_IO.File_Type;
Text : out String_Lists.List)
is begin
if Skip_Comments (Input_File) /= "%{" then
Put_Error (Input_File, "expected %{");
raise Syntax_Error;
end if;
loop
declare
Line : constant String := Get_Line (Input_File);
begin
exit when Line = "%}";
Text.Append (Line);
end;
end loop;
end Wisi.Prologue;
|