Skip to content
Snippets Groups Projects
  1. Sep 22, 2022
    • Sven M. Hallberg's avatar
      fail packrat parsers if they need more input · 866fd4d6
      Sven M. Hallberg authored
      This commit changes the contract for the combinator parse functions:
      
       (1) The input state on failure must retain valid overrun and last_chunk
           fields. The latter is never changed, but overrun would be cleared by
           various combinators that backtrack in case of failure. All other
           fields of the input stream are still considered indeterminate after a
           failed parse.
      
       (2) If an overrun condition is encountered before the final chunk
           (last_chunk is false), the parse *must* fail. A helper want_suspend()
           is introduced as a shorthand for this check.
      
      Fixes the packrat/iterative/dummy test.
      866fd4d6
  2. Oct 03, 2015
  3. May 25, 2013
  4. Apr 27, 2013
  5. Apr 23, 2013
  6. Feb 20, 2013
  7. Feb 03, 2013
  8. Dec 18, 2012
  9. Oct 10, 2012
  10. May 26, 2012
Loading