From: mcc@tyrolia.cs.princeton.edu (Martin C. Carlisle)
Subject: Re: Ada type (yacc)YYSTYPE is ?
Date: 1999/01/19
Date: 1999-01-19T00:00:00+00:00 [thread overview]
Message-ID: <782fs9$h3k$1@cnn.Princeton.EDU> (raw)
In-Reply-To: 7826ad$l3$1@nnrp1.dejanews.com
In article <7826ad$l3$1@nnrp1.dejanews.com>, <rdt@liyorkrd.li.co.uk> 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.
next prev parent reply other threads:[~1999-01-19 0:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-16 0:00 Ada type (yacc)YYSTYPE is ? tmoran
1999-01-17 0:00 ` Steven Hovater
1999-01-18 0:00 ` Tucker Taft
1999-01-18 0:00 ` Tom Moran
1999-01-19 0:00 ` Andrew W. Reynolds
1999-01-19 0:00 ` Tom Moran
1999-01-19 0:00 ` rdt
1999-01-19 0:00 ` Martin C. Carlisle [this message]
1999-01-18 0:00 ` dennison
1999-01-18 0:00 ` Tom Moran
1999-01-19 0:00 ` dennison
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox