Page 2 of 2

Re: Comment blocks like rem..endrem

Posted: Fri Jan 04, 2013 5:50 am
by Shield
I know, I'm not new to building compilers / parsing code.
But that's how it's implemented in all the big languages and that's what I don't like.

Re: Comment blocks like rem..endrem

Posted: Fri Jan 04, 2013 5:59 am
by Tenaja
The full text of that quote can be found on this page, along with full samples of nested, non nested, and multi-character comment handling. The nested comment handling also shows a great example of the use of recursion.

http://www.pp4s.co.uk/main/tu-trans-comp-jc-12.html