Re: separate multiple commands on one line

From: ozan mert gokturk <zanmerto_at_nyahnyahspammersnyahnyah>
Date: Mon, 29 Jun 2009 03:31:42 -0700 (PDT)

Hi Mark

Good question. Discussed years ago:

"Part of NCL's syntax is that a "statement" in NCL has no specific
terminating character, like C's and Perl's ";" character. NCL's parser
looks for an end-of-line character (a carriage return/newline combination)
as it's statement (and line) termination. Without this termination
character for a statement, NCL's parser deduces that the statement in
question is incomplete, and emits the error you're seeing.

The short answer: each NCL statement requires a newline to properly
terminate it, in a syntactical sense."

http://www.ncl.ucar.edu/Support/talk_archives/2003/0115.html

Cheers

Ozan

 

--- On Sun, 6/28/09, Mark.Collier_at_csiro.au <Mark.Collier_at_csiro.au> wrote:

> From: Mark.Collier_at_csiro.au <Mark.Collier_at_csiro.au>
> Subject: separate multiple commands on one line
> To: ncl-talk_at_ucar.edu
> Date: Sunday, June 28, 2009, 11:14 PM
> Hi,
> is there a way of separating multiple commands on one
> line;
>
> e.g. the 2 assignments:
>
> nolap=36
> nend=319
>
> In some languages ; is used but obviously not for NCL.
>
> Regards,
> Mark.
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

      
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jun 29 2009 - 04:31:42 MDT

This archive was generated by hypermail 2.2.0 : Mon Jun 29 2009 - 10:19:05 MDT