comp.lang.ada
 help / color / mirror / Atom feed
From: "M. A. Alves" <maa@liacc.up.pt>
Subject: Re: Pattern recognition Programming language
Date: Wed, 23 Jan 2002 12:42:07 +0000 (GMT)
Date: 2002-01-23T12:42:07+00:00	[thread overview]
Message-ID: <mailman.1011789722.16838.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <3c4e36cb.45609322@mammoth.usenet-access.com>

On Wed, 23 Jan 2002, Patricia R Benjamin wrote:
> . . . Given a stream of tokens representing a program in some
> programming
> language,  I would like to extract and process calls to specific
> procedures.  Processing includes recognizing and processing the
> statements that develop the arguments that are passed to these
> procedures.  The token stream also embodies scoping information which
> influences the processing.
> . . .
> For example, a smipped of program to be analyzed moght look like:
>
>   a=b+c;
>   some stuff...
>   func(a);
>
> The pattern that extracts this construct could be expressed as:
>
> Name_=Name1_ + Name2_
> ...
> func(Name_)
>
> This pattern should also recognize the following program:
>
> cat=mouse+catch;
> mystuff=0;
> func(cat)

Seems like a job for GNAT.Spitbol.Patterns to me :-)

-- 
   ,
 M A R I O   data miner, LIACC, room 221   tel 351+226078830, ext 121
 A M A D O   Rua Campo Alegre, 823         fax 351+226003654
 A L V E S   P-4150-180 PORTO, Portugal    mob 351+939354002





  parent reply	other threads:[~2002-01-23 12:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-23  4:23 Pattern recognition Programming language Patricia R Benjamin
2002-01-23  2:32 ` tmoran
2002-01-23 12:42 ` M. A. Alves [this message]
2002-01-23 17:18 ` Robert A Duff
2002-01-23 22:57 ` Nick Roberts
replies disabled

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