[antlr-interest] Re: nested comments

David Wigg wiggjd at lsbu.ac.uk
Wed Jul 6 04:30:49 PDT 2005


With reference to recent messages about nested C comments, I am 
not aware that any comments can be nested, eg. something like,

/* comment
source code /* nested comment */
source code
*/ .

In my (bitter) experience the first closing (*/) after an 
opening (/*) closes the comment.

Perhaps I misunderstood the meaning of nested here?

If this is legal please could someone quote any reference 
supporting it.

Thanks,

David.




More information about the antlr-interest mailing list