From: Hal Fulton Date: 2003-12-13T08:37:27+09:00 Subject: Re: Ruby parser with character ranges Jonathan Edwards wrote: > Is there a parser for ruby syntax that identifies the exact ranges of > characters for each nonterminal? I need this to instrument ruby code. > Just getting line numbers is not adequate. irb has a lexer that is pretty easy to use. I think it only stores the beginning location, though, but it should be easy to get the range. No example handy, sorry... if you can't figure it out, I can assist, though... Hal