[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] GNU M2 compatibility
From: |
Iztok Kobal |
Subject: |
[Gm2] GNU M2 compatibility |
Date: |
Fri, 07 Jun 2002 00:38:56 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020513 Netscape/7.0b1 |
GNU M2 conforms to which standard : Wirth, ISO or another ?
I find it very confusing since it doesn't compile things like
TYPE CharSet = SET OF CHAR;
VAR b : BOOLEAN;
VAR ch : CHAR;
....
b := (ch IN CharSet{'A' .. 'Z'};
here the compiler reports something like :0:quadruples 12 not yet
implemented
or
DEFINITION MODULE ConvTypes;
TYPE
ConvResults = (strAllRight,strOutOfRange,strWrongFormat,strEmpty);
ScanClass = (padding,valid,invalid,terminator);
ScanState = PROCEDURE (CHAR, VAR ScanClass, VAR ScanState);
END ConvTypes.
IMPLEMENTATION MODULE ConvTypes;
END ConvTypes.
here the compiler reports nothing and executes endless loop.
These are two excerpts from the first two on the ISO list of M2 modules
(alphabeticaly) taken from GPM M2 or StonyBrook M2. I tried to compile
ISO modules to test gm2 on Linux and obviously stuck in just beginning.
I am using the gcc-2.95.2 compiled gm2-gcc3.0.4 bundle that GNU M2
provides through its web page.
Command used to compile: gm2 -c -I. <whatever>.mod
I've got some more questions but first I want to solve these above.
Iztok
- [Gm2] GNU M2 compatibility,
Iztok Kobal <=