Fixed token best match selection. Added clone method to Parser. Better error reporting.
authorFrederic Jolliton <frederic@jolliton.com>
Sat, 6 Aug 2005 19:26:30 +0000 (19:26 +0000)
committerFrederic Jolliton <frederic@jolliton.com>
Sat, 6 Aug 2005 19:26:30 +0000 (19:26 +0000)
commit9f4d032e2bbcfc63fb599a4f435da45ea6bb1377
treef4b42940a3c46a6ff7ff8e78d2e953a2bb606f65
parent85a51b0b2475427cd95353f1842d5f579abb22e4
Fixed token best match selection. Added clone method to Parser. Better error reporting.

* Fixed token selection to really return the longest one.

* Added clone method to Parser class, allowing to save state of the
  parser.

* Better error reporting when using .next() without arguments (when
  any tokens is implictly allowed, and no match is found.)
git-archimport-id: frederic@jolliton.com--2005-private/confparser--main--0.1--patch-19
basicparser.py