Re: Implementing $?LINE and other S02 compile-time vars

2009-02-16 Thread Patrick R. Michaud
On Sun, Feb 15, 2009 at 03:48:04PM -0600, Chris Dolan wrote: On the fly would require some significant work in PGE, I think, to keep the line count correct in the face of backtracking. However, this may already be necessary down the road for proper line numbers in error messages for code

Re: Implementing $?LINE and other S02 compile-time vars

2009-02-16 Thread Jonathan Worthington
Patrick R. Michaud wrote: They're likely doable, yes. I'm not entirely certain how to handle the case of anonymous grammars, classes, roles, etc. -- those lookups may be a bit trickier. I planned to do these just as lexicals. Since we build the class inside the block anyway, if we set a

Re: Implementing $?LINE and other S02 compile-time vars

2009-02-16 Thread Patrick R. Michaud
On Mon, Feb 16, 2009 at 05:59:38PM +0100, Jonathan Worthington wrote: Patrick R. Michaud wrote: They're likely doable, yes. I'm not entirely certain how to handle the case of anonymous grammars, classes, roles, etc. -- those lookups may be a bit trickier. I planned to do these just as