Package: kelbt (0.16-4 and others)
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.37) [sh4]
- Biblioteca de C de GNU: Bibliotecas compartidas
also a virtual package provided by libc6-udeb
- dep: libc6 (>= 2.38) [not alpha, ia64, sh4]
-
- dep: libc6.1 (>= 2.33) [ia64]
- Biblioteca de C de GNU: Bibliotecas compartidas
also a virtual package provided by libc6.1-udeb
- dep: libc6.1 (>= 2.34) [alpha]
-
- dep: libgcc-s1 (>= 3.0) [not armel, armhf, hppa, ia64, m68k]
- Biblioteca de ayuda de GCC
- dep: libgcc-s1 (>= 3.5) [armel, armhf]
-
- dep: libgcc-s2 (>= 4.2.1) [m68k]
- Biblioteca de ayuda de GCC
-
- dep: libgcc-s4 (>= 4.1.1) [hppa]
- Biblioteca de ayuda de GCC
-
- dep: libstdc++6 (>= 13.1) [not ia64]
- biblioteca estándar de C++ de GNU v3
- dep: libstdc++6 (>= 5.2) [ia64]
-
- dep: libunwind8 [ia64]
- library to determine the call-chain of a program - runtime
Download kelbt
Architecture | Version | Package Size | Installed Size | Files |
---|---|---|---|---|
alpha (unofficial port) | 0.16-4 | 67.7 kB | 288.0 kB | [list of files] |
amd64 | 0.16-4 | 74.4 kB | 224.0 kB | [list of files] |
arm64 | 0.16-4+b1 | 68.3 kB | 225.0 kB | [list of files] |
armel | 0.16-4 | 64.4 kB | 198.0 kB | [list of files] |
armhf | 0.16-4 | 66.5 kB | 154.0 kB | [list of files] |
hppa (unofficial port) | 0.16-4 | 71.2 kB | 199.0 kB | [list of files] |
i386 | 0.16-4 | 80.1 kB | 230.0 kB | [list of files] |
ia64 (unofficial port) | 0.16-3 | 88.9 kB | 411.0 kB | [list of files] |
m68k (unofficial port) | 0.16-4 | 64.5 kB | 198.0 kB | [list of files] |
mips64el | 0.16-4 | 70.2 kB | 296.0 kB | [list of files] |
ppc64 (unofficial port) | 0.16-4 | 74.7 kB | 289.0 kB | [list of files] |
ppc64el | 0.16-4 | 76.3 kB | 288.0 kB | [list of files] |
riscv64 | 0.16-4 | 73.1 kB | 180.0 kB | [list of files] |
s390x | 0.16-4 | 72.9 kB | 228.0 kB | [list of files] |
sh4 (unofficial port) | 0.16-4 | 74.5 kB | 222.0 kB | [list of files] |
sparc64 (unofficial port) | 0.16-4 | 62.3 kB | 1,058.0 kB | [list of files] |
x32 (unofficial port) | 0.16-4 | 73.1 kB | 211.0 kB | [list of files] |