comp.lang.ada
 help / color / mirror / Atom feed
From: "The Wilkinsons" <junco@premier1.net>
Subject: Re: Identifying language constructs
Date: 2000/02/04
Date: 2000-02-04T00:00:00+00:00	[thread overview]
Message-ID: <CfQm4.12$i01.327@news.premier1.net> (raw)
In-Reply-To: 389BA0DC.F1FD7C73@uah.edu


Lab User wrote in message <389BA0DC.F1FD7C73@uah.edu>...

>I need a way to programically recognise basic construct of the following
>languages:
>Ada, C, C++, Java.
>I need to recognise comments statements, declarations, assignments,
>function calls,
>other operations, class declarations, list of inherited methods for the
>class,
>list of newly defined methods, correctly recognise if a class is defined
>inside other class, etc.
>
>Any suggestion how to do it?


Get a decent "yacc" and "lex" and the appropriate ".y" and ".l" files
for those languages.  Should be available somewhere under GNU
license.

Making yacc simply *recognize* the constructs, rather than generate
code for them, isn't overwhelmingly difficult, except for figuring out
what to do with shift/reduce conflicts.  (Probably just ignore them
for your purposes?)










  reply	other threads:[~2000-02-04  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-04  0:00 Identifying language constructs Lab User
2000-02-04  0:00 ` The Wilkinsons [this message]
2000-02-06  0:00 ` Ira D. Baxter
replies disabled

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