#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

#13 in #lexing

Download history 1/week @ 2024-09-17 49/week @ 2024-09-24

100 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

~1.7–2.6MB
~36K SLoC