From: Clifford Heath Date: 2008-02-16T06:24:57+09:00 Subject: Re: EOF in TreeTop? Day wrote: > see if anyone knew off the top of their head... I'm looking for > something like this, I think: > > rule comment > '*' (!"\n" !eof .)* ("\n" / eof) > end This should work for detecting eof: rule eof ! . end You might simplify by defining end of comment: rule eoc "\n" / eof end Then comment becomes: rule comment '*' (!eoc .)* eoc end Clifford Heath.