* Identifying language constructs
@ 2000-02-04 0:00 Lab User
2000-02-04 0:00 ` The Wilkinsons
2000-02-06 0:00 ` Ira D. Baxter
0 siblings, 2 replies; 3+ messages in thread
From: Lab User @ 2000-02-04 0:00 UTC (permalink / raw)
Hi
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?
Any ideas for any of the listed (or other) languages ?
Thanks a lot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Identifying language constructs
2000-02-04 0:00 Identifying language constructs Lab User
@ 2000-02-04 0:00 ` The Wilkinsons
2000-02-06 0:00 ` Ira D. Baxter
1 sibling, 0 replies; 3+ messages in thread
From: The Wilkinsons @ 2000-02-04 0:00 UTC (permalink / raw)
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?)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Identifying language constructs
2000-02-04 0:00 Identifying language constructs Lab User
2000-02-04 0:00 ` The Wilkinsons
@ 2000-02-06 0:00 ` Ira D. Baxter
1 sibling, 0 replies; 3+ messages in thread
From: Ira D. Baxter @ 2000-02-06 0:00 UTC (permalink / raw)
You could struggle to find your own parser generator and appropriate
grammars.
I assume you don't want spend a year or two doing this.
If not, look at the DMS Reengineering Toolkit
(http:/www.semdesigns.com/Products/DMS/DMSToolkit.html).
We have done all that and lots for the languages you list, and other
languages besides.
But... its a commercial product.
Lab User wrote in message <389BA0DC.F1FD7C73@uah.edu>...
>Hi
>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?
>Any ideas for any of the listed (or other) languages ?
>
>Thanks a lot
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-02-06 0:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-04 0:00 Identifying language constructs Lab User
2000-02-04 0:00 ` The Wilkinsons
2000-02-06 0:00 ` Ira D. Baxter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox