Articles 6 to 9 from total 9.
- Tunnel Grammar Studio can generate a parser from an ABNF grammar. Later on, the generated parser, as a part of the client software, will perform the parsing on the supplied user input. Often the structure of parsers, whatever mechanism they use, prevent them from identifying the error type and location precisely. Tunnel Grammar Studio has build in options to generate parsers with different error detection mechanisms. Before the compilation there are multiple options to be chosen: error location tracking, th… e found erroneous token and, the possible valid tokens that were expected at this location. There are different options how the error location will be reported: line/char offset - the location structure contains line and Unicode character offset in the line, code point and byte offsets from the input stream start. Each automatically generated syntax tree (abstract or concrete) node may have its own start/final location information at the input stream. For the visitor syntax tree architect model, on each event (start/final for rules, groups and tokens) the current input location is dynamically available, which makes it easy to generate custom syntax trees.
For more information: Tunnel Grammar StudioAt 2019 Nov 17, 16:28 GMT in news channel Versions - While using the parser generator, proper error reporting is important for its usability. In case the error is not reported with details or its location is not clear, it may slow down the working process and make the developer spend unnecessary time searching for the error / guessing what the issue may be.
Tunnel Grammar Studio checks first the syntax errors at compilation time, then an analysis is made to detect references to missing rules, invalid repetition ranges and rules recognition collisions. At compi… le time, after the syntax is checked, an analysis is initiated to detect LL(k>1) collisions. All found errors and warnings plus additional relevant messages are logged into the GUI log list. The error messages are clearly explained and its automatic localization allows their fast correction.
For more information: Tunnel Grammar StudioAt 2019 Nov 17, 16:28 GMT in news channel Versions - Scalable Vector Graphic (SVG) export is now available for the grammar layout visualization and debugger syntax trees views.At 2018 Sep 10, 13:00 GMT in news channel Versions