Meredith L. Patterson
f21954eecd
everything's working for new-build except Clean()
2013-11-26 15:29:28 -08:00
Meredith L. Patterson
ef235136d9
Merge branch 'python-bindings' of https://github.com/abiggerhammer/hammer into python-bindings
...
Conflicts:
src/bindings/python/SConscript
src/bindings/python/hammer_tests.py
src/bindings/swig/hammer.i
src/hammer.h
src/parsers/choice.c
src/parsers/sequence.c
2013-11-26 11:35:55 -08: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
cdc7ea8381
Finished Python bindings
2013-11-25 02:49:02 -06:00
Dan Hirsch
43357bbcda
AttrBool working
2013-11-24 18:43:14 -06:00
Dan Hirsch
294bca3fce
Cleaned up python bindings interface a bit; now returns strings rather than character codes if appropriate
2013-11-23 19:53:58 -06:00
Dan Hirsch
26c358accf
Got rid of accessors in Python; made h_action work
2013-11-23 16:40:57 -06:00
Dan Hirsch
954b6e32d3
Changed typemap for strings to also parse lengths
2013-11-23 13:36:54 -06:00
Meredith L. Patterson
8b6d6084c5
fixed the segfault! hand-initialized HParser needed PB_MIN set.
2013-11-23 13:36:54 -06:00
Meredith L. Patterson
12bb5cac36
more verbose tests; should run w/o hammer installed system-wide
2013-11-23 13:33:24 -06:00
Meredith L. Patterson
96760f1daf
kindasorta working. all tests (except h_action and h_attr_bool, need typemaps) have passed at one time or another, but some segfault at not-quite-random; h_and, h_epsilon_p, h_end_p, h_ignore, h_not, maybe h_choice seem culprity.
2013-11-23 13:33:24 -06:00
Meredith L. Patterson
3228a86b90
h_sequence, h_choice and HCountedSequence are all having weird issues, but tests are in a workable format now
2013-11-23 13:33:24 -06:00
Meredith L. Patterson
f685f9ea4e
there's the uint8_t problem (mostly) sorted
2013-11-23 13:33:24 -06:00
Meredith L. Patterson
073d6d8a27
python tests baked into scons; h_ch needs the first char of its input string as its input
2013-11-23 13:33:24 -06:00
Meredith L. Patterson
4bd2fc9e72
sync with php-bindings SConscript
2013-11-23 13:33:24 -06:00
Meredith L. Patterson
27f94dbe61
helps to link against the library...
2013-11-23 13:33:24 -06:00
Meredith L. Patterson
77d48e2b7c
SWIG python bindings, has same typemap problem as PHP
2013-11-23 13:33:24 -06:00
Meredith L. Patterson
75453d8b2f
Finished writing unit tests. Fixed a few small bugs in hammer.py. Further issues:
...
* "in_" and "not_in" should coerce their results to strings (i.e., chr(result))
* TestLeftrec: success case 2 fails
* TestChRange: success case segfaults
* TestWhitespaceEnd: success case segfaults
* TestAction: success case segfaults with "corrupted double-linked list"
* TestButNotRange: segfaults, probably because of whatever's wrong with ch_range
* TestXor: segfaults; failure case craps out with "malloc(): smallbin double linked list corrupted"
2013-11-23 13:33:23 -06:00
Dan Hirsch
1841c9d77e
Added a few tests
2013-11-23 13:33:23 -06:00
Dan Hirsch
a31f2d31a4
Added auto-construction, tidied h_ch a bit
2013-11-23 13:33:23 -06:00
Dan Hirsch
9d43244c2e
Working python bindings
2013-11-23 13:33:23 -06:00
Dan Hirsch
28bee303f9
Add CFFI python bindings
2013-11-23 13:33:23 -06:00
Meredith L. Patterson
31f283e720
Fixed TestRightrec
2013-11-19 19:15:14 -06:00
Meredith L. Patterson
6e456e3daa
more verbose tests; should run w/o hammer installed system-wide
2013-11-19 19:15:14 -06:00
Meredith L. Patterson
2e0c56f403
kindasorta working. all tests (except h_action and h_attr_bool, need typemaps) have passed at one time or another, but some segfault at not-quite-random; h_and, h_epsilon_p, h_end_p, h_ignore, h_not, maybe h_choice seem culprity.
2013-11-19 19:15:14 -06:00
Meredith L. Patterson
5ced9fe9d5
h_sequence, h_choice and HCountedSequence are all having weird issues, but tests are in a workable format now
2013-11-19 19:15:13 -06:00
Meredith L. Patterson
2d459282d4
there's the uint8_t problem (mostly) sorted
2013-11-19 19:15:13 -06:00
Meredith L. Patterson
b979f66c21
python tests baked into scons; h_ch needs the first char of its input string as its input
2013-11-19 19:15:13 -06:00
Meredith L. Patterson
8fcad1e72a
sync with php-bindings SConscript
2013-11-19 19:15:13 -06:00
Meredith L. Patterson
150e91537b
helps to link against the library...
2013-11-19 19:15:13 -06:00
Meredith L. Patterson
c58a722aef
SWIG python bindings, has same typemap problem as PHP
2013-11-19 19:15:13 -06:00
Meredith L. Patterson
4330a426e9
Finished writing unit tests. Fixed a few small bugs in hammer.py. Further issues:
...
* "in_" and "not_in" should coerce their results to strings (i.e., chr(result))
* TestLeftrec: success case 2 fails
* TestChRange: success case segfaults
* TestWhitespaceEnd: success case segfaults
* TestAction: success case segfaults with "corrupted double-linked list"
* TestButNotRange: segfaults, probably because of whatever's wrong with ch_range
* TestXor: segfaults; failure case craps out with "malloc(): smallbin double linked list corrupted"
2013-11-19 19:11:31 -06:00
Dan Hirsch
c58555d6a9
Added a few tests
2013-11-19 19:11:30 -06:00
Dan Hirsch
a99d7a18d1
Added auto-construction, tidied h_ch a bit
2013-11-19 19:11:30 -06:00
Dan Hirsch
a4dbfc61f2
Working python bindings
2013-11-19 19:11:30 -06:00
Dan Hirsch
42270b613d
Add CFFI python bindings
2013-11-19 19:11:30 -06:00
Meredith L. Patterson
10c8b0bd22
fixed the segfault! hand-initialized HParser needed PB_MIN set.
2013-11-19 19:00:58 -06:00
Meredith L. Patterson
62af9f6222
more verbose tests; should run w/o hammer installed system-wide
2013-11-19 17:26:01 -06:00
Meredith L. Patterson
cec4659baa
kindasorta working. all tests (except h_action and h_attr_bool, need typemaps) have passed at one time or another, but some segfault at not-quite-random; h_and, h_epsilon_p, h_end_p, h_ignore, h_not, maybe h_choice seem culprity.
2013-11-19 02:41:45 -06:00
Meredith L. Patterson
f3ce2fc7de
h_sequence, h_choice and HCountedSequence are all having weird issues, but tests are in a workable format now
2013-11-19 00:18:25 -06:00
Meredith L. Patterson
d1b71779e1
there's the uint8_t problem (mostly) sorted
2013-11-18 21:50:28 -06:00
Meredith L. Patterson
e8b2c17026
python tests baked into scons; h_ch needs the first char of its input string as its input
2013-11-18 21:14:44 -06:00
Meredith L. Patterson
f1e6e1fa95
sync with php-bindings SConscript
2013-11-17 20:56:03 -06:00
Meredith L. Patterson
0eab911258
helps to link against the library...
2013-11-17 20:41:56 -06:00
Meredith L. Patterson
804b8f7bd1
SWIG python bindings, has same typemap problem as PHP
2013-11-17 20:26:51 -06:00
Meredith L. Patterson
c9c282dcb4
Finished writing unit tests. Fixed a few small bugs in hammer.py. Further issues:
...
* "in_" and "not_in" should coerce their results to strings (i.e., chr(result))
* TestLeftrec: success case 2 fails
* TestChRange: success case segfaults
* TestWhitespaceEnd: success case segfaults
* TestAction: success case segfaults with "corrupted double-linked list"
* TestButNotRange: segfaults, probably because of whatever's wrong with ch_range
* TestXor: segfaults; failure case craps out with "malloc(): smallbin double linked list corrupted"
2013-11-14 15:50:58 +01:00
Dan Hirsch
06aa19e206
Added a few tests
2013-11-12 19:07:32 -06:00
Dan Hirsch
390bbd32f1
Added auto-construction, tidied h_ch a bit
2013-11-08 17:20:00 -05:00
Dan Hirsch
8928c04456
Working python bindings
2013-11-07 22:34:27 -05:00
Dan Hirsch
f8604f5c76
Add CFFI python bindings
2013-11-01 18:01:44 -04:00