Peña, Botp
10/8/2004 9:57:00 AM
Brian Candler [mailto:B.Candler@pobox.com] wrote:
> I think in most cases not. For the most common missing 'end'
> error, the compiler detects it at the end of the file, and
> the line it thinks it pairs with is the first line of the
> file. Hence it localises the error to somewhere between the
> first line and last line of the file, which is not very helpful :-)
>
>[snip valid example]
> Since class definitions can occur within other classes (very
> useful), and 'def' can occur within another 'def' (not so
> useful for me), that's how it gets parsed.
yes, you're right. markus also explained sample in expressions too.
but the compiler does get a missing "end", right? But it does not know for
which begin.. I'd be a happing w "missing end" message though during a
syntax check..
As for determining for wc end,
1. maybe we introduce optional endclass, endif, enddef
2. maybe we do python style force indent
>
> Regards,
>
> Brian.
kind regards -botp