全部搜尋項
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ 原始碼: kelbt  ]

套件:kelbt(0.16-2 以及其他的)

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 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 kelbt

下載可用於所有硬體架構的
硬體架構 版本 套件大小 安裝後大小 檔案
amd64 0.16-2+b1 71。9 kB215。0 kB [檔案列表]
arm64 0.16-2 67。0 kB198。0 kB [檔案列表]
armel 0.16-2 58。6 kB172。0 kB [檔案列表]
armhf 0.16-2 60。3 kB136。0 kB [檔案列表]
i386 0.16-2 72。9 kB204。0 kB [檔案列表]
mips64el 0.16-2 68。0 kB263。0 kB [檔案列表]
mipsel 0.16-2 68。0 kB240。0 kB [檔案列表]
ppc64el 0.16-2 72。4 kB286。0 kB [檔案列表]
s390x 0.16-2 64。0 kB218。0 kB [檔案列表]