#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

#297 in Parser tooling

29 downloads per month

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.5MB
~50K SLoC