Skip to content
Snippets Groups Projects
  1. Feb 17, 2020
  2. Feb 14, 2020
  3. Feb 11, 2020
  4. Feb 09, 2020
    • Sven M. Hallberg's avatar
      add H_FIELD_TOKEN() to match H_INDEX_TOKEN() · 0795591a
      Sven M. Hallberg authored
      this omission has nagged me a number of times and i think it must have been a
      simple oversight.
      0795591a
    • Sven M. Hallberg's avatar
      put a type assert macro for the sequence in H_INDEX/H_FIELD · bd5cadf2
      Sven M. Hallberg authored
      this way the assert will fire from the user's code rather than the one in
      glue.c:h_seq_index() which is not informative without a stack trace.
      bd5cadf2
    • Sven M. Hallberg's avatar
      avoid a segfault when h_act_flatten() is called on a null token · 6ab2adf1
      Sven M. Hallberg authored
      also includes commented-out tests for functionality that i discovered we never
      provided, namely position and length information at the granularity of
      HParsedTokens. at the moment, these fields always seem to be 0. we should
      probably fix that or get rid of them. in the latter case it might make sense
      to move this information to HParseResult, so the user can get access to it via
      h_action() as needed.
      6ab2adf1
    • Sven M. Hallberg's avatar
      differantiate error codes from h_compile() and update documentation · 0813b699
      Sven M. Hallberg authored
      the regex backend already returned 2 for an internal failure, contrary to
      documentation, so this mainly brings the latter in line with existing behavior.
      
      at the same time, fix a bug: h_compile would previously return "false" (0) on
      exceptions (longjmp).
      
      make use of our new freedom to signal different error conditions from the
      context-free backends, notably "incompatible combinator" vs. "unresolvable
      conflict".
      0813b699
  5. Feb 03, 2020
  6. Jan 12, 2020
  7. Jan 11, 2020
  8. Jan 07, 2020
  9. Dec 09, 2019
  10. Dec 05, 2019
  11. Dec 03, 2019
  12. Dec 02, 2019
  13. Nov 30, 2019
  14. Nov 29, 2019
  15. Nov 28, 2019
  16. Nov 26, 2019
    • xentrac's avatar
      Fix bug #19 in permutations and sequences too · 032430e3
      xentrac authored
      In `h_sequence__ma` the same bug occurs, and it manifests as a crash
      in the same way, so I've added a test for it.  In `h_permutation__ma`
      it evidently exists in the same form, but I haven't figured out how to
      reproduce it; in that case I added a fix to the implementation, but no
      test.
      032430e3
    • xentrac's avatar
      Add regression test for bug #19 · 302f2f9f
      xentrac authored
      I committed the fix for bug #19 without a test because I didn't know
      how our test worked yet; here's a test.
      
      A somewhat more desirable way to do this would be to commit the
      test *first*, marked as "incomplete" with `g_test_incomplete()` (an
      expected failure).  However, `g_test_incomplete()` does not handle
      segfaults!  There's no way to mark a segfaulting test as an "expected
      segfault".  So if you want to verify that this test reveals the bug,
      you'll need to `git show thiscommit | patch -p1` or something, in a
      tree that doesn't have the fix applied.  Or you can comment out the
      fix, I guess.
      302f2f9f
Loading