Meredith L. Patterson
8a545c4dcf
dotnet and php bindings have bitrotted, but packrat is faster now
2019-10-08 17:11:18 +02:00
Sven M. Hallberg
5996477a5e
out-of-memory handling in packrat backend
2015-11-30 18:01:23 +01:00
Meredith L. Patterson
dd5cc15a2b
shave off another ~500ns/iter by not initialising HLeftRecs we'll never use
2015-10-04 17:07:59 +02:00
Meredith L. Patterson
99ca500d2b
Don't try to recall() primitive results
2015-10-04 15:32:32 +02:00
Meredith L. Patterson
755b771ee2
more thorough comments
2015-10-03 22:26:40 +02:00
Meredith L. Patterson
969d768205
Don't cache dummy results for primitive parsers.
2015-10-03 17:54:11 +02:00
Nicolas Léveillé
0c35525e30
Convert usages of errx to h_platform_errx
...
This BSD call will have to be implemented on windows. Right now
we have a stub that just exits the process.
2015-08-09 22:46:45 +02:00
TQ Hirsch
af73181cf4
Fix #118
...
NEWS:
* Switching endianness mid-byte no longer potentially re-reads bytes.
* bit_offset now consistently refers to the number of bits already
read.
* HParsedTokens now have a bit_length field; this is a size_t. This
may be removed for memory reasons.
The bit writer has not yet been updated to match; the result of
switching bit writer endianness in the middle of a byte remains
undefined.
2015-01-04 04:08:01 +01:00
Sven M. Hallberg
f4afd0cb8d
more leftrec fixes: head caching and input rewinding
2014-03-21 20:54:33 +01:00
Sven M. Hallberg
fbdd2b7613
pull saved position into HParserCacheValue and fix segfault in grow()
2014-03-17 23:46:14 +01:00
Meredith L. Patterson
9e44bea920
commenting out assert for debugging purposes
2013-11-19 12:37:30 -06:00
Sven M. Hallberg
e7a388d1c7
move djbhash into general availability as h_djbhash
2013-06-06 13:02:29 +02:00
Meredith L. Patterson
1c7e9947a4
merging in aegis' JNI bindings
2013-05-23 00:58:27 -07:00
Sven M. Hallberg
1fe6b2ade9
add h_packrat_free
2013-05-11 22:19:36 +02:00
Sven M. Hallberg
c64a4e435e
Merge remote-tracking branch 'tq/master' into LL such that it compiles
...
Conflicts:
src/Makefile
src/backends/packrat.c
src/compile.c
src/hammer.h
src/internal.h
src/parsers/action.c
src/parsers/and.c
src/parsers/attr_bool.c
src/parsers/bits.c
src/parsers/butnot.c
src/parsers/ch.c
src/parsers/charset.c
src/parsers/choice.c
src/parsers/difference.c
src/parsers/end.c
src/parsers/epsilon.c
src/parsers/ignore.c
src/parsers/ignoreseq.c
src/parsers/indirect.c
src/parsers/int_range.c
src/parsers/many.c
src/parsers/not.c
src/parsers/nothing.c
src/parsers/optional.c
src/parsers/sequence.c
src/parsers/token.c
src/parsers/unimplemented.c
src/parsers/whitespace.c
src/parsers/xor.c
2013-05-11 19:09:22 +02:00
Sven M. Hallberg
65ee3593bd
compile function can't take a const parser
2013-05-08 18:01:55 +02:00
Dan Hirsch
13088c9d7a
Finshed up the regex backend
2013-04-26 20:36:54 -07:00
Sven M. Hallberg
63dbf83b4d
fix a loop in setupLR
2013-01-10 01:04:04 +01:00
Sven M. Hallberg
dffe47bf57
initialize eval_set to a proper copy of involved_set
2013-01-10 00:40:19 +01:00
Sven M. Hallberg
ce88a3f49d
initialize involved_set to an empty HList, not NULL
2013-01-10 00:39:15 +01:00
Meredith L. Patterson
fa6497b9f0
Refactored packrat-parsing code into packrat.c
2012-11-14 00:02:24 -05:00
Meredith L. Patterson
21ec962d76
Working on benchmarking test. A lot of things needed to be const and weren't.
2012-11-05 23:08:18 -05:00
Dan Hirsch
d0d9a94fd0
Added benchmark skeleton, and at least stubs for all of the necessary functions
2012-11-02 17:16:53 -04:00