Related articles |
---|
[4 earlier articles] |
Re: Ignore break line sometimes Pidgeot18@verizon.invalid (Joshua Cranmer) (2012-02-12) |
Re: Ignore break line sometimes kaz@kylheku.com (Kaz Kylheku) (2012-02-13) |
Re: Ignore break line sometimes bc@freeuk.com (BartC) (2012-02-14) |
Re: Ignore break line sometimes genew@ocis.net (Gene Wirchenko) (2012-02-19) |
Re: Ignore break line sometimes gah@ugcs.caltech.edu (glen herrmannsfeldt) (2012-02-20) |
Re: Ignore break line sometimes arnold@skeeve.com (2012-02-23) |
Re: Ignore break line sometimes jthorn@astro.indiana.edu (Jonathan Thornburg) (2012-02-27) |
From: | "Jonathan Thornburg" <jthorn@astro.indiana.edu> |
Newsgroups: | comp.compilers |
Date: | 27 Feb 2012 03:49:16 GMT |
Organization: | Compilers Central |
References: | 12-02-010 12-02-017 12-02-023 12-02-024 12-02-025 |
Keywords: | parse, syntax |
Posted-Date: | 27 Feb 2012 01:01:28 EST |
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
Return to the
comp.compilers page.
Search the
comp.compilers archives again.