Hapy 0.0.5 is available
Alex Rousskov <[email protected]> Thu, 4 Mar 2004 23:32:03 -0700 (MST)
| Newsgroups | gmane.comp.parsers.hapy.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Hapy library version 0.0.5 has been released.
The fifth release contains major performance optimizations
and minor bug fixes/improvements.
The change log is below.
Enjoy,
Alex.
0.0.5 2004/03/04:
- enable debugging if the code writer did not explicitly
prohibit it by calling Rule::Debug(false), and the code
runner set the HAPY_DEBUG environmental variable to
"USER"; this allows debugging of previously compiled
programs without modifying their code
- parsing speed and greed optimizations
- added dedicated user-level interfaces for controlling
debugging and optimization: Hapy::Debug() and
Hapy::Optimize()
- when debugging, report rejection due to left recursion
or empty sequence repetition
- use AX_PREFIX_CONFIG_H autoconf macro to prefix
config.h #defines with a HAPY_ prefix, to avoid
conflicts with other libraries using autoconf
- do not #include config.h if HAVE_CONFIG_H or
HAPY_HAVE_CONFIG_H is not defined; always include Top.h
though
- changed left recursion detection algorithm to take care
of cases where the parsing rule is repeated without
visible progress but the second appearance may lead
(once the duplicate path is rejected) to a different
path, making progress; added an indirectRecursion test
case to make sure we always handle this kind of
recursion correctly
- added UselessRecursion test case, mainly to test
handling of A = A kind of rules; this test case exposed
the problem with the negative operator (A - B): when
placed at the top of the grammar, the exceptional rule
(B) may not match end of input while the user may
expect it to; explicit end_r rule would be required to
parse (A - B) correctly at the top of the grammar
- Pree::rid() now returns RuleId, not int
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click