#parser #text-generator #perchance

bin+lib purrchance

An unofficial Rust implementation of the Perchance grammar engine

5 releases (3 breaking)

0.4.1 Jun 20, 2020
0.4.0 Jun 19, 2020
0.3.0 Jun 19, 2020
0.2.0 Jun 19, 2020
0.1.0 Jun 19, 2020

#3552 in #parser

MIT license

12KB
289 lines

Purrchance

Purrchance is an unofficial Rust implementation of the Perchance grammar engine.

Features I might implement eventually

  • Parsing grammars from text format
  • Basic lists
  • Probability weights
  • Single-item lists
  • Escape sequences
  • Shorthand lists
  • Properties
  • Variables
  • Executing multiple actions
  • Hierarchical lists
  • || operator

Features I probably won't implement

Dependencies

~2.2–3MB
~55K SLoC