Package: kelbt (0.15-1)
Links for kelbt
Download Source Package kelbt:
backtracking LR parser generator
Kelbt generates backtracking LALR(1) parsers. Standard LALR(1) parser generators emit an error upon encountering a conflict in the parse tables. Kelbt forges onward, generating parsers which handle conflicts by backtracking at runtime. Kelbt is able to generate a parser for any context-free grammar and therefore implements a generalized parsing method.
Kelbt is different from other backtracking LR systems in two ways. First, it elevates backtracking to the level of semantic actions by introducing a class of actions called undo actions. Undo actions are invoked as the backtracker undoes parsing and allow the user to revert any side effects of forward semantic actions. This makes it possible to backtrack over language constructs which must modify global state in preparation for handling context dependencies.
Second, Kelbt enables a user-controlled parsing strategy which approximates that of generalized recursive-descent parsing with ordered choice. This makes it easy for the user to resolve language ambiguities by ordering the grammar productions of a non-terminal according to precedence. It is approximate in the sense that for most grammars the equivalent of an ordered choice parsing strategy is achieved. In cases where productions are parsed out of the order given, there is a simple grammar transformation which remedies the problem.
As a proof of concept, Kelbt has been used to write a partial C++ parser (included) which is composed of strictly a scanner, a name lookup stage and a grammar with standard semantic actions and semantic undo actions.
Other Packages Related to kelbt
- dep: libc6 (>= 2.13) [s390x]
- Embedded GNU C Library: Shared libraries
also a virtual package provided by libc6-udeb
- dep: libc6 (>= 2.13-28) [armhf]
- dep: libc6 (>= 2.3.4) [amd64, i386, mips, mipsel]
- dep: libc6 (>= 2.4) [armel, powerpc]
- dep: libc6 (>= 2.6) [sparc]
- dep: libgcc1 (>= 1:4.1.1) [not armel, armhf]
- GCC support library
- dep: libgcc1 (>= 1:4.4.0) [armel, armhf]
- dep: libstdc++6 (>= 4.4.0)
- GNU Standard C++ Library v3
|Architecture||Package Size||Installed Size||Files|
|amd64||113.5 kB||375.0 kB||[list of files]|
|armel||105.9 kB||341.0 kB||[list of files]|
|armhf||104.2 kB||313.0 kB||[list of files]|
|i386||111.7 kB||369.0 kB||[list of files]|
|kfreebsd-amd64||113.9 kB||334.0 kB||[list of files]|
|kfreebsd-i386||112.5 kB||328.0 kB||[list of files]|
|mips||110.0 kB||377.0 kB||[list of files]|
|mipsel||110.4 kB||377.0 kB||[list of files]|
|powerpc||117.9 kB||369.0 kB||[list of files]|
|s390x||118.9 kB||391.0 kB||[list of files]|
|sparc||111.8 kB||362.0 kB||[list of files]|