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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,59ea45c31346f2c4 X-Google-Attributes: gid103376,public From: mcc@tyrolia.cs.princeton.edu (Martin C. Carlisle) Subject: Re: Ada type (yacc)YYSTYPE is ? Date: 1999/01/19 Message-ID: <782fs9$h3k$1@cnn.Princeton.EDU>#1/1 X-Deja-AN: 434473217 References: <77qu4d$jt8@lotho.delphi.com> <36a43307.39889065@news.pacbell.net> <7826ad$l3$1@nnrp1.dejanews.com> Organization: US Air Force Academy, Dept of Computer Science Newsgroups: comp.lang.ada Date: 1999-01-19T00:00:00+00:00 List-Id: In article <7826ad$l3$1@nnrp1.dejanews.com>, wrote: >In article <36a43307.39889065@news.pacbell.net>, > tmoran@bix.com (Tom Moran) wrote: >> >Having you considering using aflex? This is an Ada implementation of >> >the flex lexical analyzer generator. It has a companion parser >> >generator ayacc. >> I'm using them. But their docs just suggest "subtype yystype is >> integer;" or variant records. > >I have used these tools and from what I can remember, you are free to use >whatever type you like. If you are going to compile the resultant code with >and Ada95 compiler then I can see no reason why you can't use an Ada95 >construct. I usually use "subtype YYSTYPE is access all Parseable'Class" -- you can do some really neat OO style parsing this way. --Martin -- Martin C. Carlisle, Asst Prof of Computer Science, US Air Force Academy mcc@cs.usafa.af.mil, http://www.usafa.af.mil/dfcs/bios/carlisle.html DISCLAIMER: This content in no way reflects the opinions, standards or policy of the US Air Force Academy or the United States Government.