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,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9a1d02f396e5eb64 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-23 04:42:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: "M. A. Alves" Newsgroups: comp.lang.ada Subject: Re: Pattern recognition Programming language Date: Wed, 23 Jan 2002 12:42:07 +0000 (GMT) Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: avanie.enst.fr 1011789722 99416 137.194.161.2 (23 Jan 2002 12:42:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 23 Jan 2002 12:42:02 +0000 (UTC) Return-Path: X-X-Sender: In-Reply-To: <3c4e36cb.45609322@mammoth.usenet-access.com> Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:19227 Date: 2002-01-23T12:42:07+00:00 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