[comp.lang.ada] Bug in SIMTEL20 Ada lexer

cef@h.gp.cs.cmu.edu (Charles Fineman) (05/12/89)

I believe I discovered a bug in the lexer I got from SIMTEL20.
The problem is with the recognition of the attribute selector.
The "IDENT" state is only entered after seeing an identifier or
a right paren. According to the Ada specification, the attribute 
selector must be applicable to any component of a structure. This 
means that a quote must be able to follow a string constant or
the keyword "ALL" as well. I just had those actions do a 
"BEGIN IDENT" instead of the "BEGIN Z" that's there now.

Do any of you see a problem with this?

	Chuck Fineman


--