comp.lang.ada
 help / color / mirror / Atom feed
From: s0222353@moncol.monmouth.edu (DEAN RUNZEL)
Subject: AFLEX help needed
Date: 28 Feb 1995 13:24:26 GMT
Date: 1995-02-28T13:24:26+00:00	[thread overview]
Message-ID: <3iv86a$9lr@monmouth.edu> (raw)

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




                 reply	other threads:[~1995-02-28 13:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox