From: Day Date: 2008-02-16T07:49:52+09:00 Subject: Re: EOF in TreeTop? On Feb 15, 2008 3:24 PM, Clifford Heath wrote: > 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 Nice! I'll try it out this evening. It never occured to me that EOF would be "not anything". Sort of a funny concept. Thanks! Ben