Terry Reedy <[EMAIL PROTECTED]> wrote:
> Off the top of my head: copy C and use {} to demarcate blocks and ';' to 
> end statements, so that '\n' is not needed and is just whitespace when 
> present.  So, repeatedly scan for the next one of '{};'.

That would break if those characters appear in string literals or
comments. That's why it's nicer if you can do the transformation after
tokenising.

(Also, '{' and '}' have rather useful meanings in Python already.)

-M-
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to