Commit graph

16 commits

Author SHA1 Message Date
Dan Hirsch
753120f27e All of the main test suite works 2014-01-10 22:30:57 +01:00
Jakob Rath
905183cddc Implement h_attr_bool. 2014-01-08 20:18:08 +01:00
Jakob Rath
a302953dfd Implement h_action. 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
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
c08818e5a5 Implement first version of HParseResult. 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
d3ff5f5b1e Define choice and sequence with define_parser method. 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
6368214fce Add first version of ruby bindings. 2014-01-08 20:18:07 +01:00