as a side note. look into something like the pyparsing library in
python, it allows you to construct very inteligent lexical parsers.

On 8/21/05, Peter Hall <[EMAIL PROTECTED]> wrote:
> ah ok. gotcha.
> 
> My regexp capabilities aren't too hot, but you could do this quite easily 
> with a regexp search and replace. Match function names and
> replace with the same thing, with the trace added in the next line.
> 
> Peter
> 
> www.peterjoel.com
> 
> 
> ----- Original Message -----
> From: "Martin Wood" <[EMAIL PROTECTED]>
> To: "Open Source Flash Mailing List" <[email protected]>
> Sent: Sunday, August 21, 2005 1:01 AM
> Subject: Re: [osflash] Actionscript pre-compile post processors
> 
> 
> >I think he means in a more bulk kind of way than just single hits.
> >
> > Like being able to right-click a file in the navigator (for eclipse users) 
> > and say ASLog->Log all methods, and every method in the
> > class / file gets logging declarations entered
> >
> > I guess though some of the things you want to do with a post processor 
> > could also be achieved via AOP techniques.
> >
> > Maybe if you can distill a particular task you want and say 'i want to do 
> > this specific thing' then the combined mind can proffer
> > some solutions.
> >
> > martin
> >
> >
> > Peter Hall wrote:
> >> You can already do this with eclipse. Both ASDT and FDT ship with a few 
> >> standard templates. Just type systrace (or part of that)
> >> inside a method and then hit ctrl+space. It will add the trace statement 
> >> for you.
> >>
> >> Peter
> >> www.peterjoel.com
> >>
> >>
> >> ----- Original Message ----- From: "Alias" <[EMAIL PROTECTED]>
> >> To: "Open Source Flash Mailing List" <[email protected]>
> >> Sent: Friday, August 19, 2005 3:49 PM
> >> Subject: Re: [osflash] Actionscript pre-compile post processors
> >>
> >>
> >> Hmm, that's a good point, but I'm not really looking to get into that
> >> degree of complexity just to view logs. Also, it wouldn't just be for
> >> managing traces, you could concievably use it for generating comments,
> >> cleaning up code, etc. etc.
> >>
> >> Cheers,
> >> Alias
> >>
> >> On 8/19/05, Ben Smeets <[EMAIL PROTECTED]> wrote:
> >>
> >>> Wouldn't making use of a generic 'LogManager' be a better idea?
> >>> Something in the likes of how as2lib.org manages it (as example of flash
> >>> usage).
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> -----Original Message-----
> >>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >>> On Behalf Of Martin Wood
> >>> Sent: vrijdag 19 augustus 2005 16:02
> >>> To: Open Source Flash Mailing List
> >>> Subject: Re: [osflash] Actionscript pre-compile post processors
> >>>
> >>> Unfortunately no suggestions, all i can do is point to an existing
> >>> eclipse plugin for Java and say 'i want one of those'
> >>>
> >>> I make heavy use of the Log4E plugin to generate logging statements and
> >>> declarations in Java code. So if anyone is working on a tool like this
> >>> (it would make a nice addition to ASDT as well) its worth a look.
> >>>
> >>> http://log4e.jayefem.de/index.php/Main_Page
> >>>
> >>> especially an analagous feature to 'replace System.outs' that replaces
> >>> trace or Flashout statements for whichever logging system is being used.
> >>>
> >>> another one for the wish list.
> >>>
> >>> :)
> >>>
> >>> martin
> >>>
> >>>
> >>> Alias wrote:
> >>> > Hi guys,
> >>> >
> >>> > Just joined up today. I wanted to ask if anyone has started any kind
> >>> > of automated actionscript text processor projects, like for example, I
> >>>
> >>> > often spend hours adding traces like this:
> >>> >
> >>> > class com.foo.Foo{
> >>> > public function Foo():Void{
> >>> >   trace("Foo:Foo()");
> >>> >   bar();
> >>> > }
> >>> >
> >>> > private function bar(){
> >>> >   trace("Foo:Foo.bar()");
> >>> > }
> >>> >
> >>> > It would be nice to run a script/macro/explise plugin/whatever to
> >>> > automatically add function order traces, automatic commenting, simple
> >>> > stuff like that.
> >>> >
> >>> > That would be really useful - has anyone got any recommendation?
> >>> >
> >>> > Cheers,
> >>> > Alias
> >
> > --
> > want to know what i think? probably not
> >
> > http://relivethefuture.com/choronzon
> >
> > _______________________________________________
> > osflash mailing list
> > [email protected]
> > http://osflash.org/mailman/listinfo/osflash_osflash.org
> 
> 
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
> 


-- 
j:pn

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to