[Parseperl-discuss] [Introduction] About myself
Brought to you by:
adamkennedy
From: Jeffrey G. <dr...@po...> - 2005-08-27 13:58:18
|
As near as I can remember I've been writing Perl since...'96 or so. Since then I've written a few articles for O'Reilly and managed the first few Parrot releases after Simon passed on the torch. More to the point, I've been fiddling with a pure-Perl vim-style editor for some months in Curses and POE. Once I've gotten a visual mode done (or have given up and hacked vim+perlinterp sufficently) I'd like to see (for instance, I've got other ideas) a ':Makesub' macro come out of this, that takes a block of code, picks out the free variables and creates a 'sub foo { my ($free_1,$free_2) = @_; my @internal_array = @$free_2; code_block_here() }' text block in a separate buffer that they can paste into another file and replace the original code block with a call to the procedure. Of course, other transforms and, more importantly, the ability to perform dataflow tracing on code to determine whether a given variable is free or bound have to precede this. I've tried writing some simpler transforms, but these were with early versions of PPI, and if I remember, walking the internal data structures (which was required, as there weren't splicing operations that worked) was fraught with some peril. In any case, with the new release I'll go back and revisit the old code, and hopefully make things work. -- Jeff <dr...@po...> |