Re: Block comments

2007-12-11 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : (snip about tokenizers - not exactly my domain, sorry) > > Have I got those quotes right? Perfect !-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Block comments

2007-12-11 Thread MartinRinehart
Bruno Desthuilliers wrote: > Is the array of lines the appropriate data structure here ? I've done tokenizers both as an array of lines and as a long string. The former has seemed easier when the language treats EOL as a statement separator. re not letting literal strings in code terminate bloc

Re: Block comments

2007-12-11 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > Tomorrow is block comment day. I want them to nest. I think the reason > that they don't routinely nest is that it's a lot of trouble to code. Indeed. > Two questions: > > 1) Given a start and end location (line position and char index) in an > array of lines of tex