Commit graph

717 commits

Author SHA1 Message Date
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
TQ Hirsch
5679939a2c Merge pull request #104 from abiggerhammer/master
change pointer type to uintptr_t for portability
2014-05-11 14:56:31 -07:00
Meredith L. Patterson
fcd729ef60 change pointer type to uintptr_t for portability 2014-05-11 23:41:54 +02:00
Sven M. Hallberg
bf50ffcd84 tab correction 2014-05-07 19:29:25 +02:00
Sven M. Hallberg
4a90a0be66 fix h_read_bits path for BYTE_LITTLE_ENDIAN 2014-05-07 19:24:58 +02:00
Sven M. Hallberg
5f920b29f8 add h_with_endianness() 2014-05-07 19:24:26 +02:00
Meredith L. Patterson
27f08df1d3 fix infinite loop in isValidCF with indirect 2014-04-20 21:40:09 +02:00
Meredith L. Patterson
bab376cab7 fix non-resizable hashtable 2014-04-20 21:00:50 +02:00
Meredith L. Patterson
eb04842d85 slightly nicer benchmark output 2014-04-20 17:31:21 +02:00
Meredith L. Patterson
1d12f9ffac regex_compile should return -1 if not a regular grammar; give backends names 2014-04-20 17:23:25 +02:00
Meredith L. Patterson
c9419f4c34 CF backends weren't checking whether a grammar is CF; they are now. Also, brace-fixing. 2014-04-20 16:57:01 +02:00
TQ Hirsch
cc4ded8914 Ported to OpenBSD. 2014-04-13 22:30:48 +00:00
TQ Hirsch
849178d60b Ported to NetBSD (2/2): Add casts for character class detection
NetBSD's character class test macros are defined such that they produce
a compiler warning when given a char argument. Adding a cast to the call
fixes this.
2014-04-13 14:36:38 -07:00
TQ Hirsch
426a3f8468 Ported to NetBSD (1/2): Replaced Linux-specific timer call
CLOCK_THREAD_CPUTIME_ID is a linux-specific timer. On NetBSD, the best
way to get timer information appears to be getrusage, which happens to
be fairly cross-platform.
2014-04-13 14:36:38 -07:00
Meredith L. Patterson
70da67adb5 Merge pull request #94 from pesco/fix-49-stringmap-segfault
Fix #49 stringmap segfault
2014-04-10 23:40:28 +02:00
Sven M. Hallberg
6875dc3e53 retab 2014-03-24 17:30:23 +01:00
Sven M. Hallberg
797bdb7224 copy source stringmap as necessary in stringmap_merge 2014-03-24 17:22:52 +01:00
Sven M. Hallberg
0970b15034 add function h_stringmap_copy 2014-03-24 17:22:32 +01:00
Sven M. Hallberg
2b31fb0f33 assert: stringmap_merge's arguments should use the same memory arena 2014-03-24 15:49:36 +01: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
047c2c6059 LIBPATH, not LD_LIBRARY_PATH 2014-01-16 20:45:21 +01:00
Meredith L. Patterson
4886a7fa16 oh linker, you so crazy 2014-01-16 20:28:56 +01:00
Meredith L. Patterson
dfeafce3b3 paths 2014-01-16 20:09:33 +01:00
Meredith L. Patterson
865be1e431 scons bindings=cpp test works 2014-01-16 19:49:28 +01:00
Meredith L. Patterson
1d6a6d90ab C++ bindings now work! 2014-01-16 19:49:28 +01:00
TQ Hirsch
270dc3f1b8 Got test suite building, most of the c++ bindings are implemented. Let's see if they work 2014-01-16 19:49:28 +01:00
Meredith L. Patterson
9e0c0efd77 all tests written, though action/attr_bool are incomplete 2014-01-16 19:48:45 +01:00
TQ Hirsch
bda2fb4741 Added start at C++ bindings 2014-01-16 19:48:45 +01:00
TQ Hirsch
f751400e62 Updated Ruby-specific README 2014-01-11 06:05:23 +01:00
Dan Hirsch
982665aafa Got travis working, fixed ruby 1.9.3 compatibility 2014-01-11 05:37:34 +01:00
Dan Hirsch
df196aa346 Added sconscript 2014-01-11 04:26:47 +01:00
Dan Hirsch
cafa9adb1a Action works, too 2014-01-11 03:28:31 +01:00
Dan Hirsch
3d791412f0 Fixed character parsing 2014-01-11 03:24:39 +01:00
Dan Hirsch
0da5867a81 Action is now completely working 2014-01-11 02:55:02 +01:00
Dan Hirsch
482e89adf8 Added support for the token type registry 2014-01-11 01:10:49 +01:00
Dan Hirsch
753120f27e All of the main test suite works 2014-01-10 22:30:57 +01:00
Dan Hirsch
6a35872470 Added test suite generator for ruby 2014-01-10 21:24:50 +01:00
Dan Hirsch
8bd6671f90 Made library name cross-platform 2014-01-08 20:18:08 +01:00
Jakob Rath
905183cddc Implement h_attr_bool. 2014-01-08 20:18:08 +01:00
Jakob Rath
d343b0c8f0 Add accessor methods. 2014-01-08 20:18:08 +01:00
Jakob Rath
a302953dfd Implement h_action. 2014-01-08 20:18:08 +01:00
Jakob Rath
8c653b519e Add tests about token encoding (failing for now). 2014-01-08 20:18:08 +01:00
Jakob Rath
b16eab8f33 Fix memory issues, add HBytes#token. 2014-01-08 20:18:08 +01:00
Jakob Rath
cf59ec83ed Fix parsing of strings with multibyte characters. 2014-01-08 20:18:08 +01:00
Jakob Rath
3aa2ac2634 Add real tests. 2014-01-08 20:18:08 +01:00