すべてのオプション
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ ソース: kelbt  ]

パッケージ: kelbt (0.16-3)

kelbt に関するリンク

Screenshot

Debian の資源:

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.

タグ: ソフトウェア開発: コード生成, 実装言語: C++, 役割: プログラム

その他の kelbt 関連パッケージ

  • 依存
  • 推奨
  • 提案
  • enhances

kelbt のダウンロード

すべての利用可能アーキテクチャ向けのダウンロード
アーキテクチャ パッケージサイズ インストールサイズ ファイル
amd64 74.4 kB220.0 kB [ファイル一覧]
arm64 68.0 kB224.0 kB [ファイル一覧]
armel 62.7 kB222.0 kB [ファイル一覧]
armhf 64.8 kB158.0 kB [ファイル一覧]
i386 79.1 kB226.0 kB [ファイル一覧]
mips64el 70.3 kB296.0 kB [ファイル一覧]
mipsel 70.3 kB293.0 kB [ファイル一覧]
ppc64el 76.2 kB288.0 kB [ファイル一覧]
s390x 66.2 kB224.0 kB [ファイル一覧]