comp.lang.ada
 help / color / mirror / Atom feed
* AFLEX help needed
@ 1995-02-28 13:24 DEAN RUNZEL
  0 siblings, 0 replies; only message in thread
From: DEAN RUNZEL @ 1995-02-28 13:24 UTC (permalink / 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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-02-28 13:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-02-28 13:24 AFLEX help needed DEAN RUNZEL

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