Re: [SimpleParse] How to do use "!" (Error on fail - cut)
Brought to you by:
mcfletch
From: Martin d'A. <Mar...@s2...> - 2003-07-16 20:54:34
|
Mike, Both your answers helped me. I re-wrote my BNF a few times, learning more at each step, and making less and less mistakes. My next step is to learn to process the result tree. Is SimpleParse going to be around for a while? I mean, the mailing list suggest there are only very few users. I wonder if I should switch to SPARK... > >help! > > > section := builddecl,!, elementdecl,elementdecl* This has changed quite a bit in my re-writing, but at least I understand why it was wrong. > You're probably also wanting this: > > file := ts, section, (ts, section)*, ts Actually, my infinite loop was because I had (ts/section)* rather than (ts, section)* Thanks a lot! Martin |