On Sun, Feb 20, 2011 at 3:24 PM, Fred McLain <[email protected]> wrote:
> The unique "feature" of Python that brought this up is that the syntax
> depends on the white space characters that form the indent level for the
> block structure. I.E. you don't have a brace/begin to tell you which code
> block you are in. Additional complications include variable numbers of space
> characters for a given block level.
I think that when the Python compiler tokenizes the source, it
converts the implied levels into "indent" and "dedent" tokens, which
would be the same as C's braces { }. You can't use those with the
current Python compiler, but it may not be too difficult to derive a
compiler that did -- if you found a compiler programmer, of course.
Although that would work only with your own modules, not those that
were already written.
--
Mike Orr <[email protected]>