Re: Patch for nested macro support

2006-03-07 Thread Chip Salzenberg
Neat: It's backward-compatible and makes macros more useful, so file it under improvement and commit it. Two and a half Qs: It looks to me like this implementation is safe against { and } in strings, right? (Not a new issue, but since we're on the subject of macros:) If I define a macro named

Re: Patch for nested macro support

2006-03-07 Thread Joshua Isom
I've committed it as of r11820. Since it parses by tokens, braces inside of strings are allowed. With regard to clashing, pir specials take precedent over macros. The complications that could arise from accidental recursion, etc, seems complex. As for your .local example, you can always

Patch for nested macro support

2006-03-06 Thread Joshua Isom
I finally got around to writing up a patch to parrot that would allow the features I mentioned a while back. There aren't any heuristics, just braces. The first file is a patch to imcc.l and imclexer.c(may as well). The second file is a set of macro's I've already written up(not documented