Commit graph

112 commits

Author SHA1 Message Date
Dan Hirsch
de6f6115a8 We declared some functions that were never implemented. Implement them. 2013-11-23 13:33:23 -06: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
976205f9da hook up LALR backend stub 2013-06-04 22:14:06 +02:00
Sven M. Hallberg
fb3aae7aec fix free of previous backend data 2013-05-20 17:10:38 +02:00
Sven M. Hallberg
1c8764e1da minor cosmetics 2013-05-12 00:20:27 +02:00
Sven M. Hallberg
31c5189974 call previous backend's free function in h_compile 2013-05-11 22:21:30 +02:00
Sven M. Hallberg
a1105d413a make h_parse_result_free a no-op on NULL 2013-05-11 21:45:02 +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
Dan Hirsch
13088c9d7a Finshed up the regex backend 2013-04-26 20:36:54 -07:00
Meredith L. Patterson
07d35c72ff Most of RVM desugaring done in first draft, for TQ to check. 2013-04-22 18:06:17 -07:00
Dan Hirsch
c19d7bb66e Regex VM finished but untested. 2013-03-09 21:42:49 -08: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
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
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
ef6af551d1 Replaced GQueue and GSlist with HSlist. 2012-10-08 18:16:18 +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
b698e02b0c Merge bitwriter 2012-07-27 15:27:36 -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
Sven M. Hallberg
5668b46f97 skip previously parsed input in cache hit case 2012-06-01 19:41:56 +02:00
Sven M. Hallberg
998bda3dac add test for h_in 2012-05-29 00:02:32 +02:00
Dan Hirsch
100dadb77d Merge remote-tracking branch 'bunter/master' 2012-05-26 16:03:25 +02:00
Dan Hirsch
f2def8fa05 Refactor ALL the things! 2012-05-26 16:00:43 +02:00
Dan Hirsch
6a2f10df0c Changed parsers to use vtables instead of just a function pointer 2012-05-26 15:15:38 +02:00
Meredith L. Patterson
fa0b73dd5e Fixed possible NULL dereference; fixed setupLR to use arena properly 2012-05-26 14:40:12 +02:00
Dan Hirsch
0284c99f12 Renamed all the public functions 2012-05-26 14:06:52 +02:00
Dan Hirsch
f462d5feb3 Finished renaming types 2012-05-26 13:13:41 +02:00
Dan Hirsch
199cde7058 Renamed more types 2012-05-26 13:01:23 +02:00
Dan Hirsch
8cc526f13e Renamed parse state 2012-05-26 12:03:58 +02:00
Meredith L. Patterson
8959d6db07 action is all const all the time. Now to write the dns action. 2012-05-24 19:15:24 +02:00
Dan Hirsch
40be28fb7e Merge remote-tracking branch 'bunter/master'
Also, fix makefile

Conflicts:
	src/hammer.c
2012-05-24 15:51:42 +02:00
Dan Hirsch
5d77c4307f Fix difference and butnot 2012-05-24 15:35:04 +02:00
Meredith L. Patterson
13395d8a54 counted_array now holds parsed_token_t's. TQ will fix the problem with accumulate_size. Compile-time bounds checks added to int_range. 2012-05-24 13:22:43 +02:00
Meredith L. Patterson
13fab7e49c int_range passes test 2012-05-24 12:23:55 +02:00
Meredith L. Patterson
7626f083f5 didn't actually need that check 2012-05-24 12:16:33 +02:00
Meredith L. Patterson
a1d6e60222 fixed int_range, too 2012-05-24 12:09:38 +02:00
Meredith L. Patterson
7ab9f7c92f Fixed problems stemming from renaming of range to ch_range 2012-05-24 12:00:23 +02:00
Meredith L. Patterson
947b67b5a5 Continuing with DNS. Added some checks to attr_bool, and explained checks in docs. 2012-05-24 11:01:18 +02:00