Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #467
| From | "Jonathan Thornburg" <jthorn@astro.indiana.edu> |
|---|---|
| Newsgroups | comp.compilers |
| Subject | Re: Ignore break line sometimes |
| Date | 2012-02-27 03:49 +0000 |
| Organization | Compilers Central |
| Message-ID | <12-02-027@comp.compilers> (permalink) |
| References | <12-02-010@comp.compilers> <12-02-017@comp.compilers> <12-02-023@comp.compilers> <12-02-024@comp.compilers> <12-02-025@comp.compilers> |
Aharon Robbins <arnold@skeeve.com> wrote:
> Awk is like this. You can continue after a comma, && or ||. Possibly
> in other places too. You can supply semicolons to separate statements
> on the same line, if you want.
>
> It tends to work fairly naturally in awk, I rarely use \ to continue
> onto the next line. :-)
On the other hand pic (Kernighan's picture-drawing "little language")
is very finicky about where it accepts \ line-continuations, allowing
them in some places but forbidding them in others. For example, the
pic code
for j = 2 to 6 by 2 do { \
for i = 3 to 7 by 2 do { \
fine_space_interp_point at grid_point(j,i) } }
does NOT allow a \ line-continuation between either "for" and the
following "{". (Or more precisely, all my attempts to make such
produced the usual unhelpful pic syntax-error messages.) :(
--
-- "Jonathan Thornburg
Dept of Astronomy & IUCSS, Indiana University, Bloomington, Indiana, USA
"Washing one's hands of the conflict between the powerful and the
powerless means to side with the powerful, not to be neutral."
-- quote by Freire / poster by Oxfam
Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar
Ignore break line sometimes Geovani de Souza <geovanisouza92@gmail.com> - 2012-02-11 06:56 -0800
Re: Ignore break line sometimes Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2012-02-11 17:28 +0100
Re: Ignore break line sometimes George Neuner <gneuner2@comcast.net> - 2012-02-11 12:59 -0500
RE: Ignore break line sometimes "Karsten Nyblad" <uu3kw29sb7@snkmail.com> - 2012-02-12 09:21 +0100
Re: Ignore break line sometimes Kaz Kylheku <kaz@kylheku.com> - 2012-02-13 00:16 +0000
Re: Ignore break line sometimes Stefan Monnier <monnier@iro.umontreal.ca> - 2012-02-12 10:48 -0500
Re: Ignore break line sometimes Joshua Cranmer <Pidgeot18@verizon.invalid> - 2012-02-12 12:03 -0600
Re: Ignore break line sometimes Gene Wirchenko <genew@ocis.net> - 2012-02-19 20:57 -0800
Re: Ignore break line sometimes glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-02-20 08:09 +0000
Re: Ignore break line sometimes arnold@skeeve.com (Aharon Robbins) - 2012-02-23 21:51 +0000
Re: Ignore break line sometimes "Jonathan Thornburg" <jthorn@astro.indiana.edu> - 2012-02-27 03:49 +0000
Re: Ignore break line sometimes "BartC" <bc@freeuk.com> - 2012-02-14 00:25 +0000
csiph-web