Commit graph

163 commits

Author SHA1 Message Date
Sven M. Hallberg
70aaf1308c massage glue api around some, add a bunch of dummy declarations 2013-01-25 18:12:00 +01:00
Sven M. Hallberg
21df49cc15 split out act_header 2013-01-15 01:24:47 +01:00
Meredith L. Patterson
fdf76a0910 Merge pull request #25 from pesco/fix-whitespace-end
allow h_whitespace(p) to succeed on end of input if p succeeds
2013-01-09 08:08:49 -08:00
Sven M. Hallberg
2bc03e4e9f allow h_whitespace(p) to succeed on end of input if p succeeds 2013-01-09 14:48:02 +01:00
Sven M. Hallberg
4d0ec07c1a make TT_USER > TT_ERR, remove TT_MAX 2013-01-07 23:44:26 +01:00
Meredith L. Patterson
8163b3981d Changed other instances of malloc.h to stdlib.h for OSX compat 2012-11-14 14:05:25 -05:00
Meredith L. Patterson
fa6497b9f0 Refactored packrat-parsing code into packrat.c 2012-11-14 00:02:24 -05:00
Dan Hirsch
1e35c3c63a Fixed build error on OSX... I think. 2012-11-13 22:51:31 -05:00
Meredith L. Patterson
de8db18db4 Refactored tests; make just builds library, make test builds/runs tests 2012-11-13 22:29:25 -05:00
Meredith L. Patterson
e9b49cf24c gcc 4.4 requires stdarg in hammer.h 2012-11-11 12:39:23 -05:00
Meredith L. Patterson
4ee72f7308 double 'const' decl was causing clang to error 2012-11-11 11:10:39 -05:00
Meredith L. Patterson
6ae2e1fed4 Changed malloc.h to stdlib.h for OSX compatibility. 2012-11-10 23:34:08 -05:00
Meredith L. Patterson
6893987cbc h_benchmark and h_benchmark_report work. Need tidying. 2012-11-09 01:50:07 -05:00
Meredith L. Patterson
c24044230b Benchmark is actually broken right now, for mysterious double-free related reasons. I will dig into this tomorrow. 2012-11-08 01:36:19 -05:00
Meredith L. Patterson
771de6f98b Benchmark test case array needed to be terminated with {NULL,0,NULL}. Noted that in comments. 2012-11-06 00:20:00 -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
Dan Hirsch
8eececcac8 Now builds without glib 2012-10-10 16:45:10 +02:00
Meredith L. Patterson
158b2b3ba6 Removed all glib functions from everything other than the test suite. 2012-10-10 16:24:12 +02:00
Dan Hirsch
d5729efa1f Replaced glib memory allocation 2012-10-10 15:58:03 +02:00
Dan Hirsch
6101b8c43a Hash table now works. 2012-10-08 22:06:33 +02:00
Meredith L. Patterson
b44d00ed33 Replaced GHashTable with HHashTable ... which has some problem causing it to segfault. 2012-10-08 21:12:56 +02:00
Meredith L. Patterson
bc5e2fa754 pulled in tq's hashtable 2012-10-08 19:21:56 +02:00
Dan Hirsch
12035d66a1 Added hashtable implementation 2012-10-08 19:20:36 +02:00
Meredith L. Patterson
ef6af551d1 Replaced GQueue and GSlist with HSlist. 2012-10-08 18:16:18 +02:00
Meredith L. Patterson
b6bf0ea30c Merge remote-tracking branch 'thequux/master' 2012-10-08 18:14:18 +02:00
Dan Hirsch
69ba191783 Added singly-linked list 2012-10-08 17:11:47 +02:00
Meredith L. Patterson
1f3a75fafe Merge pull request #3 from pesco/master
add h_in (counterpart to h_not_in)
2012-08-12 01:20:59 -07:00
Meredith L. Patterson
14c907b6f5 Bitwriter tests are done and pass. 2012-07-27 16:00:56 -07:00
Dan Hirsch
3f156e6d24 Added example test for bitwriter 2012-07-27 15:53:18 -07:00
Dan Hirsch
2c7c9820e2 Merge remote-tracking branch 'upstream/master'
Conflicts:
	src/bitwriter.c
2012-07-27 15:51:11 -07:00
Dan Hirsch
1fa209bdb7 Added test harness for bitwriter 2012-07-27 15:47:38 -07:00
Meredith L. Patterson
f62aa10896 Stubbed out bitwriter tests. 2012-07-27 15:37:48 -07:00
Meredith L. Patterson
b4514eb207 and a semicolon fix 2012-07-27 15:30:17 -07:00
Dan Hirsch
4c3a5c9e4e Derp. Compile error. 2012-07-27 15:30:16 -07:00
Meredith L. Patterson
ee32c75837 Pulling more bitwriter changes 2012-07-27 15:29:25 -07:00
Dan Hirsch
68e78fd4b8 Finished bitwriter implementation 2012-07-27 15:28:55 -07:00
Meredith L. Patterson
b698e02b0c Merge bitwriter 2012-07-27 15:27:36 -07:00
Dan Hirsch
1b9314e73e Added bitwriter framework 2012-07-27 15:24:35 -07:00
Meredith L. Patterson
fa093d3b06 Added h_parse_result_free(). 2012-07-27 15:06:40 -07:00
Sven M. Hallberg
90d55139e2 Merge branch 'h_action_fail' 2012-06-09 14:42:48 +02:00
Sven M. Hallberg
10154622b8 call actions only on successful parse 2012-06-09 14:41:32 +02:00
Sven M. Hallberg
d57558bf13 Merge branch 'ignoreseq' 2012-06-02 17:32:28 +02:00
Sven M. Hallberg
7724ff9e6f add h_left, h_right, h_middle combinators 2012-06-02 17:31:06 +02:00
Sven M. Hallberg
9bc9342cb3 Merge remote-tracking branch 'upstream/master' 2012-06-02 16:09:14 +02:00
Dan Hirsch
ec7e9f2016 Added a few TODOs 2012-06-02 04:16:04 +02:00
Dan Hirsch
6d755efbde Extracted out common error handling and result patching code 2012-06-02 04:05:55 +02:00
Sven M. Hallberg
12e296fc9a Merge branch 'fix-cache-hit-skip' 2012-06-02 02:52:22 +02:00
Sven M. Hallberg
80ad3476e2 save input stream with cached results 2012-06-02 02:39:00 +02:00
Sven M. Hallberg
53c85e2179 Merge branch 'fix-cache-hit-skip' 2012-06-01 20:01:28 +02:00