Hello Fadel, Yep, and you're not the only one to have reported this ;-)
Have a look at https://lists.csail.mit.edu/pipermail/peg/2009-May/thread.html Well spotted! -- Dinesh Bolkensteyn www.SonarSource.com <http://www.sonarsource.com/> twitter.com/DBolkensteyn <http://www.SonarSource.com> On Wed, Jun 19, 2013 at 5:51 PM, Francisco Mota <fmot...@gmail.com> wrote: > I think you may be right, Fadel. Alternatively, you could use the > following rules: > > D => &(A c* !.) a* B !. > A => aAb / "" > B => bBc / "" > > > Which also gives you the language a^n b^n c^n. > > > > _______________________________________________ > PEG mailing list > PEG@lists.csail.mit.edu > https://lists.csail.mit.edu/mailman/listinfo/peg > >
_______________________________________________ PEG mailing list PEG@lists.csail.mit.edu https://lists.csail.mit.edu/mailman/listinfo/peg