comp_d

An LR parser generator written in D that can be calculated at the compile time.


Keywords
library, development, parsing, dlang, parser, parser-generator, syntax-analysis
License
BSL-1.0
Install
dub fetch comp_d --version 0.5.0

Documentation

Comp_d

An SLR(1), LALR(1), LR(1) parser generator that can be calculated at the compile time (CTFE).

Usage

To do:

User-defined conflict resolving rules. (LRTable.d)

Make an interface for LRTable and implement LRTable by AATree(current one is 2-dim array). (LRTable.d)

Implement Pager's minimal LR(1) algorithm (strong-compatibility) (and IELR(1) if vigorous enough).

Others

Any improvement suggests/advices/requests are welcome.

History

v0.3.0 Auto parse tree construction, Fixed bug around weak minimal LR, changed DSL slightly.

v0.2.0 Pager's minimal LR(1) algorithm (weak-compatibility) implemented.

v0.1.0 First publish.