Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.iecc.com!nerds-end From: "Jonathan Thornburg" Newsgroups: comp.compilers Subject: Re: Ignore break line sometimes Date: 27 Feb 2012 03:49:16 GMT Organization: Compilers Central Lines: 28 Sender: johnl@iecc.com Approved: comp.compilers@iecc.com Message-ID: <12-02-027@comp.compilers> 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> NNTP-Posting-Host: news.iecc.com X-Trace: leila.iecc.com 1330322488 25360 64.57.183.58 (27 Feb 2012 06:01:28 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Mon, 27 Feb 2012 06:01:28 +0000 (UTC) Keywords: parse, syntax Posted-Date: 27 Feb 2012 01:01:28 EST X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: x330-a1.tempe.blueboxinc.net comp.compilers:467 Aharon Robbins 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