![]() |
||
Debugging look-ahead productions |
||
| Pressemitteilung von: Dr. Detlef Meyer-Eltz | ||
TextTransformer is a development environment for the analysis and automatic evaluation and remodelling of texts. At the analysis of a text disambiguation, i.e. the choice between alternative interpretations, can depend on sections of text which follow at later positions. E.g. the meaning of a letter can depend on the signature, or the existence of a semicolon can qualify the code being in front of it in a programming language. Such a look-ahead can be debugged now as well as it was possible till now only at the current position. A special button or shortcut starts look-ahead debugging, afterwards the same commands can be used to single step over or into productions, as in the mainstream debugger. Now it's also possible to step backwards in the debugger, from a breakpoint or error condition. This backtrace allows to find out how this state was reached, without restarting the parser, and eliminates the need for writing specialized test cases, which otherwise may be required to reproduce a certain error condition. These new debugging facilities were developed in connection with a big project carried out successfully: a parser for the programming language C++ has been built for the preparatorily translation of approx. 120000 lines of source code of a company software into Java code. Detlef Meyer-Eltz Burggarten 16 20535 Hamburg GERMANY TextTransformer is specialized on all kinds of text remodeling: text analysis, text extractions, text replacements and text conversion: e.g. log file analysis, data file conversions, source to source translations etc. |
||
| http://www.openPR.com/news/31761/Debugging-look-ahead-productions.html |