Hapy 0.0.6 is available
Alex Rousskov <[email protected]> Sun, 16 May 2004 22:59:10 -0600 (MDT)
| Newsgroups | gmane.comp.parsers.hapy.user |
|---|---|
| Message-ID | <[email protected]> |
Hi there, Hapy library version 0.0.6 has been released. The sixth release adds "inlined" registration of semantic actions via subscript[] operator of a Rule. Several users specifically requested that feature. The current implementation of inlined registration relies on a templated method, for convenience. It probably does not have to use a templated method for a few common cases. While Hapy continues to build fine on many platforms, I am not a template guru; please let me know if new action interface does not work in your environment -- it is probably my fault. Updated documentation is at http://www.hapy.org/actions.html One can now reuse simple parsers (initialize with grammar() once, then parse() many times). That feature used to be available only via prefix parsing interface. There is also a bug fix for recursive grammars. The change log is below. Enjoy, Alex. 0.0.6 2004/05/13: - Allow Parser::parse() to be called multiple times. No need to explicitly reset the parser; the parser is reset automatically whenever parse() is called. - Added ability to supply actions inline, through Rule's subscript[] operator - Got rid of now-gone ptr_action Action wrapper; using action() directly or new subscript[] operator should work instead; Action uses templated method; this may not be portable and should probably be checked in ./configure - Added "Attaching Action to a Rule" section to "Actions" documentation page, explaining old Rule's action() method and newly added subscript[] operator - Added optional command line options to TestMaker, to control the shape of generated test cases: generate test cases that use one parser per clause or one parser per case; generate test cases that feed all input at once or one input octet at a time. The later is not supported yet. Defaults have not changed. - Generate and execute "shared parsers" and "encapsulated parsers" tests using newly added TestMaker command-line options - Temporary disabled a parsing optimization that failed tests for some recursive grammars (causing infinite loop during parser initialization) ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click