Article View: comp.lang.oberon
Article #1215Re: Oakwood & In Module
From: Mike Griebling
Date: Wed, 27 Mar 1996 12:16
Date: Wed, 27 Mar 1996 12:16
34 lines
1575 bytes
1575 bytes
> Hi,
>
> In article <9603261531.AA02326@trt.allied.com>,
> grieblm@trt.allied.com (Mike Griebling) writes:
> >
> >Don't you mean only signed numbers are supported? What does XYplane require?
> >I didn't think the Oberon-2 language supported unsigned numbers?
>
> Uh, sorry. I mean the In Module can't parse negative numbers:
> Oakwood (P. 31):
> IntConst=digit{digit}|digit.....
>
> Same for Real and Longreal.
Hmmm, I never noticed that but you are right. I suppose it's related to the
fact that in the language definition the `-' is considered an operator and
not part of a number.
To get around your problem, there are two possible approaches:
1) With the latest o2c, there is a new module called FIn which can read
input from a file. It supports signed integers.
2) You would be forced to input a string and then convert it to an integer
using the IntStr module.
Regards,
Michael
--------------------------------------------------------------
Michael Griebling, P. Eng. mgriebling@bix.com
Computer Inspirations grieblm@trt.allied.com
> Dirk
Technical Details
Message-ID:
<9603271149.AA03297@trt.allied.com>Path:
arc1-ca.pugleaf.net!inf.ethz.ch!oberon-news@inf.ethz.chShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!inf.ethz.ch!oberon-news@inf.ethz.ch From: grieblm@trt.allied.com (Mike Griebling) Newsgroups: comp.lang.oberon Subject: Re: Oakwood & In Module Date: 27 Mar 1996 13:16:49 +0100 Organization: Dept. Informatik, Swiss Federal Institute of Technology Sender: server@inf.ethz.ch Distribution: world Message-ID: <9603271149.AA03297@trt.allied.com> Reply-To: oberon-news@inf.ethz.ch NNTP-Posting-Host: neptune.inf.ethz.ch Originator: oberon-news@inf.ethz.ch