Re: nested comments
Rahul wrote:
> Hi Everyone,
>
> I was wondering about the nested comments and the reason why it is
> not acceptable...
Mostly because the language definition says so, I guess.
>
> /*
> first
> /*
> second
> */
> */
>
> I guess it is easy for any lexer to recognize such text with the
> of recursive grammar rule and ignore them...
> does anyone have any idea about the reason why this is not allowed?
Maybe because there is no need for it.
|