#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

#12 in #lexing

Download history 6/week @ 2024-04-02 109/week @ 2024-07-02

109 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.1–1.6MB
~21K SLoC