#lexer #parser #lexing #analysis

parsley-rs

My attempt at a Rust parsing and lexing library

40 releases (20 breaking)

0.20.4 Aug 3, 2022
0.19.0 Aug 3, 2022
0.17.0 Jul 21, 2022

#10 in #lexing

Download history 182/week @ 2024-02-19 110/week @ 2024-02-26

292 downloads per month

MIT license

49KB
1K SLoC

Parsley: Rust Edition

Parsley is my attempt at writing a library for writing lexers and parsers with ease. This implementation is written in Rust, however, I may create versions for Go, or provide Go bindings for this package.

For now, this README will be rather, devoid of content.

TODO

  1. Write proper unit tests.
  2. Clean the source code up.
    1. Make the API less, messy.
    2. Rework spans more cleanly.
  3. Write proper documentation.
  4. Make the Lexer type an iterator when lexing, allowing for a stream of tokens from a stream of bytes. (DONE)
  5. Utilize asynchronous code.

Dependencies

~0.8–1.4MB
~22K SLoC