[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[open-cobol-list] Re: minor problem
From: |
Keisuke Nishida |
Subject: |
[open-cobol-list] Re: minor problem |
Date: |
Tue Jun 8 08:03:08 2004 |
User-agent: |
Wanderlust/2.10.0 (Venus) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (UnebigoryĆmae) APEL/10.3 Emacs/21.3 (i386-redhat-linux-gnu) MULE/5.0 (SAKAKI) |
At Mon, 7 Jun 2004 21:08:41 -0400 (EDT),
David Korn wrote:
>
> The following program compiles on MVS and fails with opencobol
> because of the . after EJECT. In some other contexts, an
> EJECT can be followed by a period.
>
> ====================cut here======================
> ID DIVISION.
> PROGRAM-ID. VCAGP210.
> ENVIRONMENT DIVISION.
> CONFIGURATION SECTION.
> DATA DIVISION.
> FILE SECTION.
> EJECT.
> WORKING-STORAGE SECTION.
> ====================cut here======================
Hmm, try this patch:
--- pplex.l.~1.38.~ 2004-03-08 05:38:14.000000000 +0900
+++ pplex.l 2004-06-09 00:01:35.000000000 +0900
@@ -144,10 +144,10 @@
}
}
-"EJECT" |
-"SKIP1" |
-"SKIP2" |
-"SKIP3" {
+"EJECT"\.? |
+"SKIP1"\.? |
+"SKIP2"\.? |
+"SKIP3"\.? {
/* these words are comments in IBM COBOL */
if (cb_verify (cb_eject_statement, yytext))
{
Keisuke