comp.lang.ada
 help / color / mirror / Atom feed
From: "Nasser M. Abbasi" <nma@12000.org>
Subject: Re: Ada++
Date: Sat, 13 Jun 2020 05:11:10 -0500
Date: 2020-06-13T05:11:10-05:00	[thread overview]
Message-ID: <rc28ns$19b9$1@gioia.aioe.org> (raw)
In-Reply-To: 51cfeba9-7426-4477-936c-cb9364129f40o@googlegroups.com

On 6/13/2020 5:03 AM, gautier_niouzes@hotmail.com wrote:
>> It is not possible to do this in Ada. Well, it is,  but it will
>> be very very cumbersome.
>>
>> Here are some very basic examples using Ruby, Perl and C++
>>
>> https://www.12000.org/my_notes/here_document/index.htm
> 
>> It is not possible to do this in Ada. Well, it is,  but it will
>> be very very cumbersome.
> 
> No, it's piece of cake! Just use the right editor :-) .
> 
>> Here are some very basic examples using Ruby, Perl and C++
>>
>> https://www.12000.org/my_notes/here_document/index.htm
> 
> Done with LEA in a few mouse clicks and key strokes (lines truncated here because of the max columns of newsgroups).
> 
> with HAC_Pack;  use HAC_Pack;
> 
> procedure Easy is
> begin
>    Put_Line("\documentclass[12pt,titlepage]{article}                _");
>    Put_Line("\begin{document}                                       _");
>    Put_Line("\title{%(title)s}                                      _");
>    Put_Line("\date{%(date)s}                                        _");
>    Put_Line("                                                       _");
>    Put_Line("The following in known equation $\sin^2(x)+\cos^2(x)=1$_");
>    Put_Line("is 100%(p)s correct. This was written on %(date)s and t_");
>    Put_Line("string ""I am a string"" and this is \n which is left a_");
>    Put_Line("                                                       _");
>    Put_Line("\end{document}                                         _");
> end;
> 

Thanks, But that is my point.

I do not want to do that, even if it is done by an editor.

I'd rather just write, for example, in Python:

s =r"""
\documentclass[12pt,titlepage]{article}
\begin{document}
\title{%(title)s}
\date{%(date)s}
  
The following in known equation $\sin^2(x)+\cos^2(x)=1$ and this
is 100%(p)s correct. This was written on %(date)s and this is a
string "I am a string" and this is \n which is left as is.
  
\end{document}
"""

Which I can do in any editor, even using notepad.exe on windows :)

And if I have to edit it again (add/remove stuff), which happens
all the time, much easier to edit the raw string, than your version.

--Nasser


  reply	other threads:[~2020-06-13 10:11 UTC|newest]

Thread overview: 72+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-28 22:33 Ada++ Jerry
2020-05-29  2:09 ` Ada++ Nasser M. Abbasi
2020-05-29  2:57   ` Ada++ Rick Newbie
2020-05-29  9:49     ` Ada++ raph.amiard
2020-05-29  9:51     ` Ada++ gautier_niouzes
2020-05-30  1:32       ` Ada++ Rick Newbie
2020-05-30  6:52         ` Ada++ gautier_niouzes
2020-05-30  7:04           ` Ada++ Rick Newbie
2020-05-30  7:31           ` Ada++ Dmitry A. Kazakov
     [not found]           ` <rb05fk$l5r$1@dont-email.me>
2020-05-31 21:20             ` Ada++ gautier_niouzes
2020-05-29 10:36     ` Ada++ Luke A. Guest
2020-05-30  1:35       ` Ada++ Rick Newbie
2020-05-29 11:09     ` Ada++ Björn Lundin
2020-05-29 12:31       ` Ada++ Nasser M. Abbasi
2020-05-29 21:57       ` Ada++ Optikos
2020-05-31 11:40         ` Ada++ Björn Lundin
2020-05-31 15:51           ` Ada++ J-P. Rosen
2020-05-30  1:36       ` Ada++ Rick Newbie
2020-05-29  3:45 ` Ada++ Optikos
2020-05-29 15:41   ` Ada++ Optikos
2020-05-29  3:54 ` Ada++ cantanima.perry
2020-05-29 10:41   ` Ada++ Luke A. Guest
2020-05-29  4:17 ` Ada++ Wesley Pan
2020-05-29  4:38   ` Ada++ Nasser M. Abbasi
2020-05-29  6:06     ` Ada++ J-P. Rosen
2020-05-29  6:56       ` Ada++ Dmitry A. Kazakov
2020-05-29  7:22         ` Ada++ J-P. Rosen
2020-05-29  9:23       ` Ada++ fabien.chouteau
2020-05-29  9:43         ` Ada++ raph.amiard
2020-05-29 10:27           ` Ada++ Jeffrey R. Carter
2020-05-29 11:00             ` Ada++ Dmitry A. Kazakov
2020-05-29 20:57           ` Ada++ J-P. Rosen
2020-06-13  9:40       ` Ada++ Nasser M. Abbasi
2020-06-13 10:03         ` Ada++ gautier_niouzes
2020-06-13 10:11           ` Nasser M. Abbasi [this message]
2020-06-13 10:07         ` Ada++ Dmitry A. Kazakov
2020-06-14  5:29         ` Ada++ J-P. Rosen
2020-05-30 15:25 ` Ada++ ric.wai88
2020-05-30 17:02   ` Ada++ Stéphane Rivière
2020-05-30 20:56   ` Ada++ Optikos
2020-05-30 21:58     ` Ada++ ric.wai88
2020-06-05 22:37       ` Ada++ Randy Brukardt
  -- strict thread matches above, loose matches on Subject: below --
2004-10-22 13:22 Ada# fabio de francesco
2004-10-22 13:36 ` Ada# Marc A. Criley
     [not found] <200203220829.JAA11725@bulgaria.otn.eurocopter.de>
2002-03-22 15:55 ` Ada? sk
2002-03-22  8:29 Ada? Christoph Grein
2002-03-22 14:57 ` Ada? Ted Dennison
2002-03-22 15:34   ` Ada? Jean-Pierre Rosen
     [not found] <200203220654.HAA11171@bulgaria.otn.eurocopter.de>
2002-03-22  7:58 ` Ada? sk
     [not found] ` <3C9AE426.471865A1@myob.com>
2002-03-22  8:05   ` Ada? sk
2002-03-22  6:54 Ada? Christoph Grein
2002-02-19 21:21 Ada? anymous
2002-02-19 22:02 ` Ada? chris.danx
2002-02-19 23:38 ` Ada? Larry Kilgallen
2002-02-24  3:23 ` Ada? Nick Roberts
2002-02-24 15:09   ` Ada? Georg Bauhaus
2002-02-27 15:26   ` Ada? Enrico A.
2002-03-19 15:06     ` Ada? Colin Paul Gloster
2002-03-19 20:57       ` Ada? Ted Dennison
2002-03-19 22:00         ` Ada? Dan Andreatta
2002-03-19 23:45           ` Ada? Larry Kilgallen
2002-03-20 14:26           ` Ada? Ted Dennison
     [not found]             ` <3C98E9CC.45D733F2@west.raytheon.com>
2002-03-21  9:39               ` Ada? Preben Randhol
2002-03-20  2:08         ` Ada? Adrian Hoe
2002-03-20 17:39           ` Ada? Marin David Condic
2002-03-22  1:56             ` Ada? Adrian Hoe
2002-03-22  2:34               ` Ada? Richard Riehle
2002-03-20  1:41     ` Ada? Adrian Hoe
2002-03-20  2:34       ` Ada? DPH
2002-03-20 10:52       ` Ada? Reinert Korsnes
2002-03-20 13:32       ` Ada? Gary Scott
2002-02-27 21:37 ` Ada? Ken Pinard
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox