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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!attcan!uunet!lll-winken!ncis.tis.llnl.gov!helios.ee.lbl.gov!pasteur!ucbvax!bloom-beacon!apple!rutgers!rochester!pt.cs.cmu.edu!h.gp.cs.cmu.edu!cef From: cef@h.gp.cs.cmu.edu (Charles Fineman) Newsgroups: comp.lang.ada Subject: Bug in SIMTEL20 Ada lexer Message-ID: <4975@pt.cs.cmu.edu> Date: 11 May 89 17:43:03 GMT Organization: Carnegie-Mellon University, CS/RI List-Id: 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 --