differantiate error codes from h_compile() and update documentation
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".
Showing
- src/backends/glr.c 1 addition, 1 deletionsrc/backends/glr.c
- src/backends/lalr.c 5 additions, 5 deletionssrc/backends/lalr.c
- src/backends/llk.c 1 addition, 1 deletionsrc/backends/llk.c
- src/backends/regex.c 2 additions, 1 deletionsrc/backends/regex.c
- src/benchmark.c 1 addition, 1 deletionsrc/benchmark.c
- src/hammer.h 7 additions, 1 deletionsrc/hammer.h
Loading
Please register or sign in to comment