Commit graph

43 commits

Author SHA1 Message Date
Sven M. Hallberg
010a1a36ff int_range test does not work for regex backend 2015-09-04 16:48:01 +02:00
Sven M. Hallberg
932c9717d7 oops, forgot about the lookahead 2015-09-04 12:34:34 +02:00
Sven M. Hallberg
10fde548ad add a test for iterative parsing 2015-09-03 19:58:39 +02:00
Sven M. Hallberg
1ce0ef9b8a pass a temporary arena allocator to the continuation in h_bind 2015-02-23 14:10:29 +01:00
Sven M. Hallberg
78266af453 allow h_bind's function argument to return NULL as a shortcut for h_nothing_p() 2015-01-23 22:06:43 +01:00
Sven M. Hallberg
42d51ed479 add monadic bind combinator h_bind 2015-01-23 22:00:59 +01:00
Sven M. Hallberg
41dca83631 add h_permutation 2014-06-18 21:54:52 +02:00
Meredith L. Patterson
eb6c74cf89 h_put_value and h_get_value done. 2014-05-12 09:52:35 +02:00
Sven M. Hallberg
bf50ffcd84 tab correction 2014-05-07 19:29:25 +02:00
Sven M. Hallberg
5f920b29f8 add h_with_endianness() 2014-05-07 19:24:26 +02:00
Sven M. Hallberg
4a973d3f98 enable leftrec-ne test for LALR and GLR backends 2014-03-21 22:39:13 +01:00
Sven M. Hallberg
5af0e3e2ba disable test /core/parser/packrat/leftrec 2014-03-21 22:37:39 +01:00
Sven M. Hallberg
0fb744b16d rename leftrec_nonempty test to leftrec-ne 2014-03-21 22:34:39 +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
2ee82f3ac7 Merge branch 'python-bindings' of https://github.com/thequux/hammer into python-bindings
Conflicts:
	src/bindings/python/SConscript
	src/bindings/python/hammer_tests.py
	src/bindings/swig/hammer.i
	src/hammer.h
2013-11-26 11:25:22 -08:00
Dan Hirsch
69e84bcbb0 Added a void* user_data pointer to HPredicate 2013-11-23 13:01:55 -06:00
Dan Hirsch
e487d5435c Added a void* user_data pointer to HAction 2013-11-23 12:53:11 -06:00
Meredith L. Patterson
ccacccb750 Rewrote test_leftrec to mirror test_rightrec. It fails differently for packrat now! 2013-11-19 03:31:59 -06:00
Meredith L. Patterson
8681600365 working on fixing leftrec for packrat 2013-11-19 03:29:44 -06:00
Dan Hirsch
71209dc97b Changed parser test macros so that _parse_ok just checks whether the match succeeded and _parse_match actually checks the resulting parse tree 2013-11-01 13:39:37 -04:00
Meredith L. Patterson
0db4925469 Revert "C++ tests set up. They probably don't compile; need to write iostream ops for prettyprinting and set up C++ build in scons." Should have branched it.
This reverts commit 6a29277db4.
2013-09-03 05:33:30 +02:00
Meredith L. Patterson
6a29277db4 C++ tests set up. They probably don't compile; need to write iostream ops for prettyprinting and set up C++ build in scons. 2013-09-03 05:32:21 +02:00
Sven M. Hallberg
1e59e461fa make ambiguous test ignore order of precedence 2013-06-21 19:58:58 +02:00
Sven M. Hallberg
f5d4ea90da add ambiguous test case for GLR 2013-06-20 11:30:30 +02:00
Sven M. Hallberg
55c9a3d9c5 add stub GLR backend with h_glr_parse() a copy of h_lr_parse() 2013-06-19 17:20:53 +02:00
Sven M. Hallberg
d51e13173a add LALR test suite 2013-06-14 17:36:46 +02:00
Sven M. Hallberg
dfe4c3ad47 add right-recursion test for packrat and llk 2013-06-14 12:42:55 +02:00
Dan Hirsch
d71215d494 All tests pass; lots of stuff is no longer const 2013-05-24 15:07:47 +02:00
Meredith L. Patterson
f37a13ef41 Fixed the 'unknown HCF_CHOICE' problem with indirect; test_leftrec is not an LL(k) test 2013-05-23 03:38:22 -07:00
Meredith L. Patterson
1c7e9947a4 merging in aegis' JNI bindings 2013-05-23 00:58:27 -07:00
Meredith L. Patterson
570c798be7 Regex tests too. Only int_range() and nothing() work. 2013-05-23 00:16:08 -07:00
Meredith L. Patterson
22b0471050 Only LL(k)'s many() and many1(), and benchmark 1, are failing. 2013-05-23 00:12:47 -07:00
Meredith L. Patterson
10584ba22a Refactor for separate tests for packrat and LL(k). 2013-05-22 23:50:48 -07:00
Sven M. Hallberg
e5300e2836 roll the positive cases for int16, int32 back into the existing test 2013-05-20 15:26:14 +02:00
Sven M. Hallberg
d081cf4284 reshape bits parsers 2013-05-14 17:20:05 +02:00
Meredith L. Patterson
5df9db015c h_ch's return type is uint, not bytes; fixed validate_test_ab accordingly, even though it worked before with the wrong union member name (probably because token is the first thing in the struct). Oh C, stay classy. 2013-02-20 22:08:05 -05:00
Meredith L. Patterson
31665994f4 h_attr_bool didn't have tests implemented. It does now. 2013-02-20 22:03:52 -05:00
Meredith L. Patterson
015b82eb0e many, many1, sepBy and sepBy1 were missing some test cases. 2013-02-20 21:42:02 -05:00
Sven M. Hallberg
4e3084739e fix expected value of first leftrec test case 2013-01-10 01:09:04 +01:00
Sven M. Hallberg
0497cdb08b add trivial left-recursion test case 2013-01-10 00:08:07 +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
Meredith L. Patterson
de8db18db4 Refactored tests; make just builds library, make test builds/runs tests 2012-11-13 22:29:25 -05:00