#parser-generator #grammar #analyzer #lr #glr

bin+lib perplex

A grammar analyzer and LR(k)/GLR parser generator

2 releases

Uses old Rust 2015

0.4.1 Aug 13, 2018
0.4.0 Aug 11, 2018

#336 in Parser tooling

MIT/Apache

170KB
4K SLoC

perplex

This is perplex, a grammar analyzer and parser generator for almost-context-free languages.

Todo

  • item set generation
  • item set merging/compression
  • conflict reporting
  • state space computation
  • GLR analysis with recursive rules
  • separate extended grammar with symbol groups, optional symbols, repetitions
  • generalization to CFG, tiered parsing
  • location and span tracking
  • automated AST synthesis

License

Perplex is licensed under the terms of the MIT license and the Apache License (Version 2.0), at your discretion. See LICENSE-MIT and LICENSE-APACHE for details.


lib.rs:

A grammar analyzer and parser generator for almost-context-free languages.

Dependencies

~3–11MB
~91K SLoC