[Pharo-project] [Lsehub-staff] Shortcuts for AST matcher
Begin forwarded message:
From: Andre Hora <andre.cavalcante.hora@inria.fr> Subject: [Lsehub-staff] Shortcuts for AST matcher Date: March 19, 2013 4:24:46 PM GMT+01:00 To: RMoD private list <lsehub-staff@lists.gforge.inria.fr> Reply-To: RMoD private list <lsehub-staff@lists.gforge.inria.fr>
Hi,
I've just implemented a shortcut for the AST matcher. It means that you can select a valid AST expression in your browser and press cmd+t in order to find similar AST patterns (the same idea of senders and users of a method).
Also, by selecting a valid AST expression and pressing cmd+y the same is done but ignoring variable node names, then other patterns are found.
Download:
------------------- Gofer new squeaksource: 'FindBugs'; package: 'ASTMatcher'; load. -------------------
Examples:
That is pretty cool. Doru On Mar 31, 2013, at 7:03 PM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
Begin forwarded message:
From: Andre Hora <andre.cavalcante.hora@inria.fr> Subject: [Lsehub-staff] Shortcuts for AST matcher Date: March 19, 2013 4:24:46 PM GMT+01:00 To: RMoD private list <lsehub-staff@lists.gforge.inria.fr> Reply-To: RMoD private list <lsehub-staff@lists.gforge.inria.fr>
Hi,
I've just implemented a shortcut for the AST matcher. It means that you can select a valid AST expression in your browser and press cmd+t in order to find similar AST patterns (the same idea of senders and users of a method).
Also, by selecting a valid AST expression and pressing cmd+y the same is done but ignoring variable node names, then other patterns are found.
Download:
------------------- Gofer new squeaksource: 'FindBugs'; package: 'ASTMatcher'; load. -------------------
Examples:
<image.png>
-- www.tudorgirba.com "Every now and then stop and ask yourself if the war you're fighting is the right one."
I'm really thinking that we should get such feature in the system. Stef
That is pretty cool.
Doru
On Mar 31, 2013, at 7:03 PM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
Begin forwarded message:
From: Andre Hora <andre.cavalcante.hora@inria.fr> Subject: [Lsehub-staff] Shortcuts for AST matcher Date: March 19, 2013 4:24:46 PM GMT+01:00 To: RMoD private list <lsehub-staff@lists.gforge.inria.fr> Reply-To: RMoD private list <lsehub-staff@lists.gforge.inria.fr>
Hi,
I've just implemented a shortcut for the AST matcher. It means that you can select a valid AST expression in your browser and press cmd+t in order to find similar AST patterns (the same idea of senders and users of a method).
Also, by selecting a valid AST expression and pressing cmd+y the same is done but ignoring variable node names, then other patterns are found.
Download:
------------------- Gofer new squeaksource: 'FindBugs'; package: 'ASTMatcher'; load. -------------------
Examples:
<image.png>
-- www.tudorgirba.com
"Every now and then stop and ask yourself if the war you're fighting is the right one."
still, how fast is it? in ms? compared to a textual search? I guessif you do not cache the ast nodes it is the same speed as the image wide source code search... nevertheless I'd really like to have it in the image ;) On 31.03.2013, at 19:40, stephane ducasse <stephane.ducasse@free.fr> wrote:
I'm really thinking that we should get such feature in the system.
Stef
That is pretty cool.
Doru
On Mar 31, 2013, at 7:03 PM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
Begin forwarded message:
From: Andre Hora <andre.cavalcante.hora@inria.fr> Subject: [Lsehub-staff] Shortcuts for AST matcher Date: March 19, 2013 4:24:46 PM GMT+01:00 To: RMoD private list <lsehub-staff@lists.gforge.inria.fr> Reply-To: RMoD private list <lsehub-staff@lists.gforge.inria.fr>
Hi,
I've just implemented a shortcut for the AST matcher. It means that you can select a valid AST expression in your browser and press cmd+t in order to find similar AST patterns (the same idea of senders and users of a method).
Also, by selecting a valid AST expression and pressing cmd+y the same is done but ignoring variable node names, then other patterns are found.
Download:
------------------- Gofer new squeaksource: 'FindBugs'; package: 'ASTMatcher'; load. -------------------
Examples:
<image.png>
-- www.tudorgirba.com
"Every now and then stop and ask yourself if the war you're fighting is the right one."
+1. Doru On Mar 31, 2013, at 8:52 PM, Camillo Bruni <camillobruni@gmail.com> wrote:
still, how fast is it? in ms? compared to a textual search? I guessif you do not cache the ast nodes it is the same speed as the image wide source code search...
nevertheless I'd really like to have it in the image ;)
On 31.03.2013, at 19:40, stephane ducasse <stephane.ducasse@free.fr> wrote:
I'm really thinking that we should get such feature in the system.
Stef
That is pretty cool.
Doru
On Mar 31, 2013, at 7:03 PM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
Begin forwarded message:
From: Andre Hora <andre.cavalcante.hora@inria.fr> Subject: [Lsehub-staff] Shortcuts for AST matcher Date: March 19, 2013 4:24:46 PM GMT+01:00 To: RMoD private list <lsehub-staff@lists.gforge.inria.fr> Reply-To: RMoD private list <lsehub-staff@lists.gforge.inria.fr>
Hi,
I've just implemented a shortcut for the AST matcher. It means that you can select a valid AST expression in your browser and press cmd+t in order to find similar AST patterns (the same idea of senders and users of a method).
Also, by selecting a valid AST expression and pressing cmd+y the same is done but ignoring variable node names, then other patterns are found.
Download:
------------------- Gofer new squeaksource: 'FindBugs'; package: 'ASTMatcher'; load. -------------------
Examples:
<image.png>
-- www.tudorgirba.com
"Every now and then stop and ask yourself if the war you're fighting is the right one."
-- www.tudorgirba.com "Some battles are better lost than fought."
participants (4)
-
Camillo Bruni -
stephane ducasse -
Stéphane Ducasse -
Tudor Girba