Commit graph

633 commits

Author SHA1 Message Date
Sven M. Hallberg
445913610d parse whole input and allow surrounding whitespace in base64 example 2013-01-10 01:25:37 +01:00
Sven M. Hallberg
88566ab81b Merge branch 'fix-left-recursion' into base64-example 2013-01-10 01:23:38 +01:00
Sven M. Hallberg
4e3084739e fix expected value of first leftrec test case 2013-01-10 01:09:04 +01: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
Sven M. Hallberg
0497cdb08b add trivial left-recursion test case 2013-01-10 00:08:07 +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
Meredith L. Patterson
a2840a6aa7 Merge pull request #24 from pesco/base64-example
Base64 example
2013-01-09 08:07:19 -08:00
Meredith L. Patterson
b507ff6cb0 Merge pull request #23 from pesco/tt_user
make TT_USER > TT_ERR, remove TT_MAX
2013-01-09 08:07:03 -08:00
Sven M. Hallberg
18e33a6112 Merge branch 'fix-whitespace-end' into base64-example 2013-01-09 14:54:00 +01: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
177281289c use h_in for restricted base64 digit cases 2013-01-08 00:24:13 +01:00
Sven M. Hallberg
87b5e668c3 remove comments about bugs that no longer exist 2013-01-08 00:20:34 +01:00
Sven M. Hallberg
bc486aa840 fix base64 example to parse more than the 2- and 1-byte special cases 2013-01-08 00:19:23 +01:00
Sven M. Hallberg
4d0ec07c1a make TT_USER > TT_ERR, remove TT_MAX 2013-01-07 23:44:26 +01:00
Dan Hirsch
ca8751bcfe Merge branch 'master' of git://github.com/abiggerhammer/hammer 2012-12-31 20:06:14 +01:00
Meredith L. Patterson
36e1f66de0 Expanded vtable for methods to determine whether a combinator is ok to use with regular or CF grammars. 2012-12-18 18:10:40 -05:00
Meredith L. Patterson
ad4aa74b85 Merge pull request #22 from abiggerhammer/master
further OS X compat
2012-11-14 11:11:28 -08: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
b97d961227 Merge pull request #21 from abiggerhammer/master
Refactored hammer.c packrat parsing code into backends/packrat.c
2012-11-13 21:05:30 -08:00
Meredith L. Patterson
fa6497b9f0 Refactored packrat-parsing code into packrat.c 2012-11-14 00:02:24 -05:00
Meredith L. Patterson
0ab598cd4a Merge pull request #20 from abiggerhammer/master
readme fix
2012-11-13 19:57:43 -08:00
Meredith L. Patterson
4e6cfe9375 doc isn't actually a target yet 2012-11-13 22:54:10 -05:00
Dan Hirsch
5b1619719e Merge remote-tracking branch 'upstream/master' 2012-11-13 22:52:56 -05:00
Dan Hirsch
1e35c3c63a Fixed build error on OSX... I think. 2012-11-13 22:51:31 -05:00
Dan Hirsch
29c61e8aec Merge remote-tracking branch 'upstream/master' 2012-11-13 22:42:44 -05:00
Dan Hirsch
49ea7864cc Tweaked docs 2012-11-13 22:42:25 -05:00
Meredith L. Patterson
fe757bde2d Refactoring done. Added glib minimum version to README. 2012-11-13 22:42:11 -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
236ec733a1 Reorganizing makefile requirements 2012-11-13 21:50:48 -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
c05559f04b made prereq header a little smaller 2012-11-11 02:29:34 -05:00
Meredith L. Patterson
e96969a6f0 Finally wrote a damn README 2012-11-11 02:28:07 -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
bd41f059b2 Merge branch 'master' of https://github.com/abiggerhammer/hammer 2012-10-08 18:20:34 +02:00
Meredith L. Patterson
ef6af551d1 Replaced GQueue and GSlist with HSlist. 2012-10-08 18:16:18 +02:00