Commit graph

771 commits

Author SHA1 Message Date
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
Jakob Rath
96dfad0178 h_token: Copy string correctly.
See https://github.com/ffi/ffi/wiki/Core-Concepts#string-memory-allocation for additional information.
2014-01-08 20:18:08 +01:00
Jakob Rath
d53ee07499 Allow access to HCountedArray's elements. 2014-01-08 20:18:07 +01:00
Jakob Rath
c08818e5a5 Implement first version of HParseResult. 2014-01-08 20:18:07 +01:00
Jakob Rath
6d38b8e82a Use typedefs for pointers. 2014-01-08 20:18:07 +01:00
Jakob Rath
76782bfa4a Implement indirect parser and fix some bugs. 2014-01-08 20:18:07 +01:00
Jakob Rath
8ff5e181ce Add more parsers. 2014-01-08 20:18:07 +01:00
Jakob Rath
8048f2e731 Use Fixnum for Parser.ch() 2014-01-08 20:18:07 +01:00
Jakob Rath
cfff00f8ed Add more parsers to ParserBuilder. 2014-01-08 20:18:07 +01:00
Jakob Rath
676799fbbc Add Parser.build_choice method. 2014-01-08 20:18:07 +01:00
Jakob Rath
d3ff5f5b1e Define choice and sequence with define_parser method. 2014-01-08 20:18:07 +01:00
Jakob Rath
5ea0b727d0 Don't use C extensions (JRuby compatibility). 2014-01-08 20:18:07 +01:00
Jakob Rath
049a64946b Fix indentation. 2014-01-08 20:18:07 +01:00
Jakob Rath
3f661b91e3 Duplicate string argument to token parser. 2014-01-08 20:18:07 +01:00
Jakob Rath
7bdd8b7ce2 Free parse result. 2014-01-08 20:18:07 +01:00
Jakob Rath
6e34e0c8fb Remove Hammer::Parser subclasses. 2014-01-08 20:18:07 +01:00
Jakob Rath
daeabb587d Need rake-compiler gem. 2014-01-08 20:18:07 +01:00
Jakob Rath
6368214fce Add first version of ruby bindings. 2014-01-08 20:18:07 +01:00
Meredith L. Patterson
42d1dd4fe9 update README files; decrufting 2014-01-05 02:07:14 +01:00
Meredith L. Patterson
0ee77d776f make dotnet tests run for 'test' target 2014-01-05 01:57:19 +01:00
Meredith L. Patterson
4826a70883 find nunit location automagically 2014-01-05 01:29:20 +01:00
Dan Hirsch
692f914986 Fixed registry test case 2014-01-04 23:39:59 +01:00
Dan Hirsch
3da3e70f65 Got action and attr_bool working 2014-01-04 23:13:35 +01:00
Dan Hirsch
ebb7b677ba Added handwritten test for h_action to C# 2014-01-04 23:13:35 +01:00
Dan Hirsch
feaf1a7e06 DotNet bindings mostly work 2014-01-04 23:13:35 +01:00
Dan Hirsch
14a5c5c1ef Test suite now builds 2014-01-04 23:13:35 +01:00
Dan Hirsch
a219ffc45d Have a typemap for uint8_t* 2014-01-04 23:13:35 +01:00
Dan Hirsch
cbdff5fbc0 Added basic scons/swig bindings 2014-01-04 23:13:35 +01:00
Meredith L. Patterson
ecfe8a64d6 tidying php-bindings directory and travis output 2013-12-22 18:27:59 +01:00
Meredith L. Patterson
10dffd3ee4 trying to fix missing function name for call_action 2013-12-22 18:12:12 +01:00
Meredith L. Patterson
500257d111 remove spurious TSRMLS_CC 2013-12-22 18:12:11 +01:00
Meredith L. Patterson
d6dbf4ba41 SWIG doesn't like adding TSRMLS_* macros to fn decls, so TSRMLS_FETCH it is 2013-12-22 18:12:11 +01:00
Meredith L. Patterson
c67391cfbb what happens when we call hpt_to_php with TSRMLS_CC? 2013-12-22 18:12:11 +01:00
Meredith L. Patterson
bb58af5738 ok, outside of the init block then 2013-12-22 18:12:11 +01:00
Meredith L. Patterson
838bf54aa0 what happens if we declare tsrm_ls explicitly at global scope? 2013-12-22 18:12:11 +01:00
Meredith L. Patterson
203bb85b65 apparently zts needs a TSRMLS_C declaration for invocations of zend_exception_get_default() 2013-12-22 18:12:11 +01:00
Meredith L. Patterson
80eed33825 use only zend_throw_exception, not SWIG exception wrappers 2013-12-22 18:12:11 +01:00
Meredith L. Patterson
8286ce087d hpt_to_php needs TSRMLS_FETCH too; update swig to version perl uses 2013-12-22 18:12:11 +01:00
Meredith L. Patterson
4826607e67 add TSRMLS_FETCH at top of blocks that need tsrm_ls 2013-12-22 18:10:47 +01:00
Meredith L. Patterson
f9eebda673 fix segfault with optimized code; initialize TSRM stuff 2013-12-22 18:10:47 +01:00
Meredith L. Patterson
b9ce12f3b6 Great PHP Symbol Renaming; debug build works, optimised build segfaults. is it gcc? fuck it all and let travis sort it out 2013-12-22 18:09:26 +01:00
Meredith L. Patterson
bd48af7b90 implement predicate; decruft; quiet phpunit 2013-12-22 18:09:26 +01:00
Meredith L. Patterson
c2cde65764 xor uses correct version of ch_range; commented out broken underlying C bits of leftrec 2013-12-22 18:09:26 +01:00
Meredith L. Patterson
2730d9ffd7 fix ch_range; confirm action works with sequences too 2013-12-22 18:09:26 +01:00
Meredith L. Patterson
6c9410d8de action works! need to clean up xor and ch_range, and write attr_bool 2013-12-22 18:09:26 +01:00
Meredith L. Patterson
53a661442e swap order of params for hpt_to_php 2013-12-22 18:09:26 +01:00
Meredith L. Patterson
34ad3f58fa h_tt_php registered as resource, now to work out how to decode them 2013-12-22 18:09:26 +01:00