www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/26/13:11:13

From: Damian Yerrick <DELCAPSyerricde AT pineight DOT 8mSOFTWARE DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: parse error ... char 0335
Organization: Rose-Hulman Institute of Technology
Message-ID: <D8MVOOOV7IvLic7Sqt4PdjiYGN3y@4ax.com>
References: <80256816 DOT 00459042 DOT 00 AT mail1 DOT lake DOT ie>
X-Newsreader: Forte Agent 1.6/32.525
MIME-Version: 1.0
Lines: 34
X-Trace: /bJ8XQ3fKkpCTD1SKDy23/ZFPF57PsAKE5i3lgKRaOVpJlE2rnGCer73bNN1UilCUGIvUq+9hRKO!obPxVVjxJMaFDUR9dXFSZn6wEWAh09ewTlI/SkmXlJFIWpJM1HgsbFvtBplUEQ8tTw==
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Tue, 26 Oct 1999 15:14:19 GMT
Distribution: world
Date: Tue, 26 Oct 1999 15:14:19 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Tue, 26 Oct 1999 13:39:48 +0100,
Sakis DOT Platsas AT lake DOT ie wrote:

> I am using djgpp 2.02 inside the Win98 GUI from a command prompt.
> Most programs I tried until now worked perfectly, as expected :)
> BUT...
> When a line in the code reads something like this:
> 
> .. if ((string[i] == ' ') || ....)
> 
> I get a "parse error ... char 0335" (presumably that's the "|" character)

0335 is octal for 221. Anyone?

> whereas, if I substitute || with &&:
> 
> .. if ((string[i] == ' ') && ....)
> 
> the code works OK. It seems that the "logical OR" operator is mishandled somehow
> in this environment.
> Actually, when using RHIDE, the "&&" string was correctly identified as a
> "reserved" symbol, being in while foreground. However, the "||" string is shown
> with a YELLOW foreground, which means it's NOT considered as a reserved symbol.

Did you accidentally type "ll" (LL) or "II" (ii)? (This might be
easier to see if you full-screen the console with Alt+Enter.) Did you
take into account that Windows-based editors such as Microsoft Notepad
have two different character codes for | (Alt+0124) and ¦ (Alt+0166)?
Or are you using the line-drawing character Alt+179 or Alt+186? Only
character 124 works.
--
Damian Yerrick
Mail me from the link on my web site:
Pinocchio's Brother <http://yerricde.tripod.com/>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019