From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ed5c783a710fcda5,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-02-28 05:24:26 PST Path: nntp.gmd.de!stern.fokus.gmd.de!ceres.fokus.gmd.de!zib-berlin.de!fauern!news.th-darmstadt.de!terra.wiwi.uni-frankfurt.de!zeus.rbi.informatik.uni-frankfurt.de!news.dfn.de!fu-berlin.de!zrz.TU-Berlin.DE!netmbx.de!unlisys!news.maz.net!pipex!howland.reston.ans.net!newsserver.jvnc.net!monmouth.edu!moncol!s0222353 From: s0222353@moncol.monmouth.edu (DEAN RUNZEL) Newsgroups: comp.lang.ada Subject: AFLEX help needed Date: 28 Feb 1995 13:24:26 GMT Organization: Monmouth College, W. Long Branch, NJ 07764 Message-ID: <3iv86a$9lr@monmouth.edu> NNTP-Posting-Host: moncol.monmouth.edu X-Newsreader: TIN [version 1.2 PL2] Date: 1995-02-28T13:24:26+00:00 List-Id: Is there someone out there who is familiar with Aflex and Ayacc and who could tell me how to get in touch with the maintainers of these programs? We are using them to develop an Ada95 parser as part of our master's thesis project and I have run into a real problem with Aflex. The problem is: We use [a-zA-Z](_?[a-zA-Z0-9])* as the BNF for Ada identifiers. This should prevent identifiers with leading underscores or with consecutive underscores. When we run this through Aflex and build a simple tool to print the tokens and their values to a file, the lexical analyzer calls items with both leading underscores and consecutive underscores identifiers and allows them as valid tokens. Why? I'd be willing to send the code to anyone who can help. I could probably fix this by putting in a validity checking routine to scan each identifier for leading or consecutive underscores but, given the above BNF, this should be unnecessary and is definitely undesireable. Any help would be greatly appreciated. Thanks in advance for any info. Dean R. Runzel