Peter Johnson
c8fc061ea6
Ditch longs and long longs in favor of stdint.h types, which has cascading
...
effects throughout, including use of inttypes.h/PRI[ud]64 because printf() is
still stuck in a long world, conversion of %lu to %zu for printing values of
type size_t, and changing/renaming the g_check_cmp* family of functions.
2013-11-15 00:12:57 -05: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
Dan Hirsch
ce0829de33
Made test-suite work on its own
2013-11-01 12:39:01 -04:00
Sven M. Hallberg
b959bcb5c7
fix an array index
2013-06-06 13:01:39 +02:00
Dan Hirsch
ec404ca8fe
Refactored all of the desugaring code to no longer depend on memory being initialized to 0. Everything is about 12% faster now.
2013-05-25 03:35:42 +02: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
f5d5c36756
generalize grammar analysis to k>1
2013-05-22 20:38: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
5593b826e3
add scaffold for grammar tests and codify the dummy test case
2013-05-08 00:48:46 +02:00
Dan Hirsch
13088c9d7a
Finshed up the regex backend
2013-04-26 20:36:54 -07:00
Dan Hirsch
b8314f6662
Added regex backend, does not compile
2013-01-13 17:01:10 +01:00
Meredith L. Patterson
6ae2e1fed4
Changed malloc.h to stdlib.h for OSX compatibility.
2012-11-10 23:34:08 -05:00
Dan Hirsch
1fa209bdb7
Added test harness for bitwriter
2012-07-27 15:47:38 -07:00
Dan Hirsch
0284c99f12
Renamed all the public functions
2012-05-26 14:06:52 +02:00
Dan Hirsch
199cde7058
Renamed more types
2012-05-26 13:01:23 +02:00
Dan Hirsch
764d0d7071
Cleaned up some memory leaks, got rid of gsequence, improved test macro to free memory that it allocated
2012-05-17 15:52:29 +02:00
Dan Hirsch
3afe324aaa
Implemented a bunch more combinators
2012-05-13 01:01:26 +01:00
Dan Hirsch
97f9c472e1
Merge remote-tracking branch 'bunter/master'
2012-05-12 23:05:09 +01:00
Dan Hirsch
3504bde301
Log memory usage diagnostics, fix test_not, add ability to compile in debug mode
2012-05-12 23:04:54 +01:00
Meredith L. Patterson
0164ddc98d
Merge branch 'master' of 10.24.0.1:Projects/hammer. Also, licenses for everything!
...
Conflicts:
src/hammer.c
2012-05-12 22:26:59 +01:00
Dan Hirsch
57e1e20db0
Fixed test functions and pretty printer. Also fixed bug in parse_sequence. Wrote whitespace parser
2012-05-12 01:28:52 +01:00
Dan Hirsch
d5358a724b
Made sequence and choice variadic, and added test suite helper functions
2012-05-12 00:40:54 +01:00
Meredith L. Patterson
7cf1df005f
Test generation continues; need to pull in tq's work
2012-05-11 23:38:45 +01:00
Meredith L. Patterson
6e087ac758
Test harness macros extended. Need to implement bodies of primitive parsers.
2012-05-11 21:05:49 +01:00
Meredith L. Patterson
1789cbf0ca
Fixed default 'all' target; fixed format warnings in test suite
2012-04-30 02:32:32 +01:00
Dan Hirsch
faab7b7cf8
Wrote basic makefile, wrote tests, and then fixed them
2012-04-29 01:45:52 +01:00