Hello all,

To find package and import statements using Semantic the following
should work:

(car (semantic-find-nonterminal-by-type 'package (current-buffer))) to
retrieve the package token (or nil if not found) then use
`semantic-token-name' to get the package name.

(semantic-find-nonterminal-by-type 'include (current-buffer)) to
retrieve the list of import tokens (or nil if not found) then use
`semantic-token-name' to get each import name and
`semantic-token-start|end' to get each import start/end locations.

Hope this will help.

Sincerely,
David

Paul Kinnucan wrote:
>
> Hi All,
>
> I will address this as soon as possible. I am preoccupied with other
> projects that will keep me from updating the JDE for the next 1-2 weeks.
>
> - Paul
>
> ----- Original Message -----
> From: "Sandip Chitale" <[EMAIL PROTECTED]>
> To: "'Schewe, Jon (MN65)'" <[EMAIL PROTECTED]>; "'Javier Lopez'"
> <[EMAIL PROTECTED]>; "'Jde List (E-mail)'" <[EMAIL PROTECTED]>
> Sent: Tuesday, May 08, 2001 4:27 PM
> Subject: RE: jde-import-find-and-import puts imports in wrong place
>
> > >
> > > How about making the regexp check to make sure the string isn't inside
> > > quotes?
> > >
> >Hello all,

To find package and import statements using Semantic the following
should work:

(car (semantic-find-nonterminal-by-type 'package (current-buffer))) to
retrieve the package token (or nil if not found) then use
`semantic-token-name' to get the package name.

(semantic-find-nonterminal-by-type 'include (current-buffer)) to
retrieve the list of import tokens (or nil if not found) then use
`semantic-token-name' to get each import name and
`semantic-token-start|end' to get each import start/end locations.

Hope this will help.

Sincerely,
David

Paul Kinnucan wrote:
>
> Hi All,
>
> I will address this as soon as possible. I am preoccupied with other
> projects that will keep me from updating the JDE for the next 1-2 weeks.
>
> - Paul
>
> ----- Original Message -----
> From: "Sandip Chitale" <[EMAIL PROTECTED]>
> To: "'Schewe, Jon (MN65)'" <[EMAIL PROTECTED]>; "'Javier Lopez'"
> <[EMAIL PROTECTED]>; "'Jde List (E-mail)'" <[EMAIL PROTECTED]>
> Sent: Tuesday, May 08, 2001 4:27 PM
> Subject: RE: jde-import-find-and-import puts imports in wrong place
>
> > >
> > > How about making the regexp check to make sure the string isn't inside
> > > quotes?
> > >
> >
> > And not in comment...
> > And not in half complete comment....
> >
> > I think this is a classic problem which requires parsing and
> > not a simple regexp trickery, iff one wants to solve this
> > accurately. That is why I say 'Semantic' should be used.
> >
> > my last comment on this issue... ;) :)
> >
> > -sandip
> >
> > And not in comment...
> > And not in half complete comment....
> >
> > I think this is a classic problem which requires parsing and
> > not a simple regexp trickery, iff one wants to solve this
> > accurately. That is why I say 'Semantic' should be used.
> >
> > my last comment on this issue... ;) :)
> >
> > -sandip
> >


__________________________________________________
Voila vous propose une boite aux lettres gratuite sur Voila Mail:
http://mail.voila.fr



Reply via email to