Commit graph

  • 9e597d4801 use ppa version of swig Meredith L. Patterson 2013-12-06 08:19:19 +01:00
  • 3e6269637d auto-accept ppa Meredith L. Patterson 2013-12-06 07:50:47 +01:00
  • 53e13657b0 use a backport instead so as to not break python or other things Meredith L. Patterson 2013-12-06 07:47:55 +01:00
  • 0581958167 the bug was in SWIG pre 2.0.8. Update travis to use ubuntu raring, which has this. Meredith L. Patterson 2013-12-06 07:29:16 +01:00
  • 42a3b05c23 add stdbool.h to perl hammer.i to stop bool from being #undef'd Meredith L. Patterson 2013-12-06 06:24:17 +01:00
  • 80b597cfbf move stdbool.h to top level Meredith L. Patterson 2013-12-06 06:11:48 +01:00
  • 8d564af139 SWIG docs suggest -DHAS_BOOL Meredith L. Patterson 2013-12-06 05:59:07 +01:00
  • 85000da581 put stdbool.h in hammer.h to try and fix perl bindings on travis Meredith L. Patterson 2013-12-06 04:52:30 +01:00
  • 4b86fa1f5a try travis with perl 5.18 instead of 5.14 Meredith L. Patterson 2013-12-06 04:33:40 +01:00
  • f53f474de2 try to resolve missing bool/true/false problems with perl bindings Meredith L. Patterson 2013-12-06 04:27:44 +01:00
  • b794dbf72d SWIGPERL check around bool typedef Meredith L. Patterson 2013-12-06 04:03:55 +01:00
  • a811b51241 use whatever compiler CC says to compile perl bindings Meredith L. Patterson 2013-12-06 03:55:52 +01:00
  • 767afacf6b remove -DHAMMER_INTERNAL__NO_STDARG_H from Makefile.PL too Meredith L. Patterson 2013-12-06 03:19:45 +01:00
  • baf7aa23e3 remove -DHAMMER_INTERNAL__NO_STDARG_H from CFLAGS for perl bindings build Meredith L. Patterson 2013-12-06 03:16:01 +01:00
  • b8c963db95 try setting CC in the environment for clang+bindings builds to get travis to actually use clang for them Meredith L. Patterson 2013-12-05 11:15:55 +01:00
  • 7d054b1f92 perl needs swig too Meredith L. Patterson 2013-12-05 10:21:10 +01:00
  • 97be291096 override perl dependency installation Meredith L. Patterson 2013-12-05 10:18:28 +01:00
  • d08cce0da1 add perl to travis matrix Meredith L. Patterson 2013-12-05 10:13:15 +01:00
  • df7a7b467a Merge pull request #82 from thequux/perl-bindings Meredith L. Patterson 2013-12-05 01:06:15 -08:00
  • fab45fe044 Helps to add the perl makefile. Bonus points for including a README Dan Hirsch 2013-12-05 09:58:30 +01:00
  • 01c45d8453 Added install target for perl Dan Hirsch 2013-12-05 09:47:45 +01:00
  • 9d0cb859d8 Moved building perl binding lib and running test suite to EU::MM Makefile Dan Hirsch 2013-12-05 09:45:26 +01:00
  • 58412ed005 Added MakeMaker-based build system for perl bindings Dan Hirsch 2013-12-05 09:35:09 +01:00
  • 2f3bc9c4b0 Perl tests are now part of the build system Dan Hirsch 2013-12-05 08:41:28 +01:00
  • 8c44d583e6 All tests pass. Dan Hirsch 2013-12-04 04:56:47 +01:00
  • 4199ad8758 All tests except attr_bool pass Dan Hirsch 2013-12-04 04:44:07 +01:00
  • 4eebe57908 Actions work Dan Hirsch 2013-12-04 01:51:59 +01:00
  • cafe4cdc17 Merge pull request #79 from jrozner/master TQ Hirsch 2013-12-03 14:40:24 -08:00
  • 52bdc9d3dc Fix LC_ID_DYLIB for OS X Joe Rozner 2013-12-03 13:28:56 -08:00
  • 1d11527924 Got perl bindings started Dan Hirsch 2013-12-03 21:29:02 +01:00
  • 544f021849 Add link to go bindings TQ Hirsch 2013-12-02 15:40:56 -08:00
  • 105a52ebeb Merge pull request #75 from jrozner/master TQ Hirsch 2013-12-02 15:38:02 -08:00
  • 1c1d0be0bf Fix include path Joe Rozner 2013-12-02 11:56:20 -08:00
  • 4f2d06204d Fix pkgconfig input Joe Rozner 2013-12-02 11:35:00 -08:00
  • c6ca2aea8d how to install (eg) python bindings Meredith L. Patterson 2013-11-28 22:41:02 -08:00
  • 22a4d39d2f Merge pull request #67 from abiggerhammer/master TQ Hirsch 2013-11-28 21:38:41 -08:00
  • add92d09ce remove non-working CFFI bindings Meredith L. Patterson 2013-11-28 21:07:35 -08:00
  • 5a1b5de9b3 Merge pull request #16 from abiggerhammer/python-bindings Meredith L. Patterson 2013-11-26 20:03:39 -08:00
  • f58ec8ecb7 tidying and a README about this part of the build Meredith L. Patterson 2013-11-26 20:00:55 -08:00
  • 79f498cdab python bindings install target works. libhammer.so must be on LD_LIBRARY_PATH. Meredith L. Patterson 2013-11-26 19:54:09 -08:00
  • 20bf8c4b79 distutils and working tests! Meredith L. Patterson 2013-11-26 19:25:41 -08:00
  • 53bc886e2f distutils being invoked from scons; ld is failing with 'libhammer.a: archive has no index, run ranlib to add one' Meredith L. Patterson 2013-11-26 19:09:27 -08:00
  • 1e0f3744f8 my god, it's a distutils script Meredith L. Patterson 2013-11-26 18:12:28 -08:00
  • 022a9f30c6 Update README.md Meredith L. Patterson 2013-11-26 16:29:30 -08:00
  • 63e984d643 Update README.md Meredith L. Patterson 2013-11-26 16:27:28 -08:00
  • bf67809ab9 Merge pull request #66 from abiggerhammer/master TQ Hirsch 2013-11-26 16:21:08 -08:00
  • 55316e2f03 Merge pull request #15 from abiggerhammer/python-bindings Meredith L. Patterson 2013-11-26 16:10:04 -08:00
  • f611a49ab2 cpp stuff doesn't belong on python-bindings branch Meredith L. Patterson 2013-11-26 16:04:13 -08:00
  • 75255d2e47 SCons doesn't support Python 3! So 2.7 only it is. Oh well. Meredith L. Patterson 2013-11-26 15:55:23 -08:00
  • bd16038129 Python 2.6 is unsupported because the PyCapsule API was backported from Python 3 to 2.7. Trying Python 3.3 and 3.2 just for grins. Meredith L. Patterson 2013-11-26 15:53:30 -08:00
  • 5dea57c4d4 build matrix for python Meredith L. Patterson 2013-11-26 15:45:34 -08:00
  • 1e7553d3df build//src/bindings/python/hammer_tests.py still hangs around but everything else is cleaned up. Meredith L. Patterson 2013-11-26 15:40:15 -08:00
  • f21954eecd everything's working for new-build except Clean() Meredith L. Patterson 2013-11-26 15:29:28 -08:00
  • ef235136d9 Merge branch 'python-bindings' of https://github.com/abiggerhammer/hammer into python-bindings Meredith L. Patterson 2013-11-26 11:35:55 -08:00
  • 2ee82f3ac7 Merge branch 'python-bindings' of https://github.com/thequux/hammer into python-bindings Meredith L. Patterson 2013-11-26 11:25:22 -08:00
  • cdc7ea8381 Finished Python bindings Dan Hirsch 2013-11-25 02:49:02 -06:00
  • 43357bbcda AttrBool working Dan Hirsch 2013-11-24 18:43:14 -06:00
  • 294bca3fce Cleaned up python bindings interface a bit; now returns strings rather than character codes if appropriate Dan Hirsch 2013-11-23 19:53:58 -06:00
  • 26c358accf Got rid of accessors in Python; made h_action work Dan Hirsch 2013-11-23 16:40:57 -06:00
  • 954b6e32d3 Changed typemap for strings to also parse lengths Dan Hirsch 2013-11-22 19:42:02 -06:00
  • 8b6d6084c5 fixed the segfault! hand-initialized HParser needed PB_MIN set. Meredith L. Patterson 2013-11-19 19:00:58 -06:00
  • 12bb5cac36 more verbose tests; should run w/o hammer installed system-wide Meredith L. Patterson 2013-11-19 17:26:01 -06:00
  • 0aac5f4622 travis needs python-nose to run nosetests Meredith L. Patterson 2013-11-19 03:45:49 -06:00
  • 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. Meredith L. Patterson 2013-11-19 02:41:45 -06:00
  • 3228a86b90 h_sequence, h_choice and HCountedSequence are all having weird issues, but tests are in a workable format now Meredith L. Patterson 2013-11-19 00:18:25 -06:00
  • f685f9ea4e there's the uint8_t problem (mostly) sorted Meredith L. Patterson 2013-11-18 21:50:28 -06:00
  • 073d6d8a27 python tests baked into scons; h_ch needs the first char of its input string as its input Meredith L. Patterson 2013-11-18 21:14:44 -06:00
  • eba8ecc6c3 typemap to fix conversion from python strings to uint8_t* Meredith L. Patterson 2013-11-18 17:19:46 -06:00
  • 4bd2fc9e72 sync with php-bindings SConscript Meredith L. Patterson 2013-11-17 20:56:03 -06:00
  • 27f94dbe61 helps to link against the library... Meredith L. Patterson 2013-11-17 20:41:56 -06:00
  • dc9124724a fix travis config here too Meredith L. Patterson 2013-11-17 20:31:10 -06:00
  • 77d48e2b7c SWIG python bindings, has same typemap problem as PHP Meredith L. Patterson 2013-11-17 20:26:51 -06:00
  • ada7bf89ee There's a typemap problem between const uint8_t* and target-language strings, but I can create parsers in python and php. Meredith L. Patterson 2013-11-17 15:55:38 -06:00
  • 73eabc7bf9 SWIG bindings build, compile, and appear to work for python. Will port over tests next. Meredith L. Patterson 2013-11-16 20:24:05 +01:00
  • 0e4253d0ef invoke swig with relative path instead, -I../../ Meredith L. Patterson 2013-11-16 08:15:01 +01:00
  • 8f427b5a6d fixed nested unions Meredith L. Patterson 2013-11-16 08:12:29 +01:00
  • 49f22e2aff Import combinator and allocator APIs into SWIG. Next is glue. Need to fix unions in HParsedToken and HCaseResult. Meredith L. Patterson 2013-11-16 07:56:47 +01:00
  • 75453d8b2f Finished writing unit tests. Fixed a few small bugs in hammer.py. Further issues: Meredith L. Patterson 2013-11-14 15:50:58 +01:00
  • 1841c9d77e Added a few tests Dan Hirsch 2013-11-12 19:07:32 -06:00
  • a31f2d31a4 Added auto-construction, tidied h_ch a bit Dan Hirsch 2013-11-08 17:20:00 -05:00
  • 9d43244c2e Working python bindings Dan Hirsch 2013-11-07 22:34:27 -05:00
  • 28bee303f9 Add CFFI python bindings Dan Hirsch 2013-11-01 18:01:44 -04:00
  • de6f6115a8 We declared some functions that were never implemented. Implement them. Dan Hirsch 2013-11-01 18:00:50 -04:00
  • a17d189d9d Merge pull request #62 from thequux/add-callback-userdata Meredith L. Patterson 2013-11-23 11:14:41 -08:00
  • 890c6383a7 Added documentation for H_{A,V,VA,AV}DRULE Dan Hirsch 2013-11-23 13:09:39 -06:00
  • 69e84bcbb0 Added a void* user_data pointer to HPredicate Dan Hirsch 2013-11-23 13:01:55 -06:00
  • e487d5435c Added a void* user_data pointer to HAction Dan Hirsch 2013-11-23 12:53:11 -06:00
  • bba60f5db9 Merge pull request #60 from thequux/allow-in-place-build Meredith L. Patterson 2013-11-23 10:35:36 -08:00
  • d2cb13ab86 Merge pull request #61 from thequux/install_name-is-darwin-only Meredith L. Patterson 2013-11-23 10:35:04 -08:00
  • c6b4beefcb Make install_name darwin-only Dan Hirsch 2013-11-23 12:28:34 -06:00
  • 2cead893fc Allow in-place build via scons --in-place Dan Hirsch 2013-11-22 19:44:30 -06:00
  • 1ec64f4938 Merge pull request #58 from jrozner/master TQ Hirsch 2013-11-21 22:12:17 -08:00
  • bb02aa18e7 Add warning message Joe Rozner 2013-11-21 22:09:25 -08:00
  • 4b258c98e0 Merge branch 'master' of github.com:UpstandingHackers/hammer Joe Rozner 2013-11-21 22:05:50 -08:00
  • e193bd1e57 Merge pull request #57 from thequux/reduce-irc-spam Meredith L. Patterson 2013-11-21 21:33:09 -08:00
  • d0906e69e6 Fix for linux Joe Rozner 2013-11-21 12:50:03 -08:00
  • 1d80058c85 Properly name the lib Joe Rozner 2013-11-21 12:37:36 -08:00
  • 76034ae4d7 Install internal headers for Go bindings Joe Rozner 2013-11-21 12:02:18 -08:00
  • a98272b8c0 Reduce IRC spam Dan Hirsch 2013-11-20 15:37:24 -06:00
  • 87c380f82c Merge pull request #56 from jrozner/master TQ Hirsch 2013-11-20 13:27:47 -08:00