Rust Parsing

Open-source Rust projects categorized as Parsing

Top 23 Rust Parsing Projects

  • tree-sitter

    An incremental parsing system for programming tools

    Project mention: Rust for Filesystems | news.ycombinator.com | 2024-07-15

    If you like to see some examples of C bindings:

    https://github.com/tree-sitter/tree-sitter/blob/25c718918084...

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • lightningcss

    An extremely fast CSS parser, transformer, bundler, and minifier written in Rust.

    Project mention: I'm fed up with it, so I'm writing a browser | news.ycombinator.com | 2023-09-22

    Would you consider using some libraries in your project? There are lots of good ones in the Rust ecosystem, and many of them are not part of any existing browsers.

    For example:

    - https://github.com/servo/html5ever (HTML parsing - note: this is used in Servo)

    - https://github.com/parcel-bundler/lightningcss (CSS parsing)

    - https://github.com/DioxusLabs/taffy (web layout)

    - https://github.com/pop-os/cosmic-text (text layout and rendering)

    Obviously you should be free to work on whatever you like, but just as a benchmark on the scope of your project: I spent ~6 months implementing just the CSS Grid algorithm in Taffy last year. An entire browser from literal scratch is probably a 10 year project for one person.

  • pest

    The Elegant Parser (by pest-parser)

    Project mention: Lo โ€“ simple WASM native language | news.ycombinator.com | 2024-05-26

    Nice work. Out of curiosity, did you consider using pest (https://pest.rs/) to help build your parser? Or is it too much for what you are doing?

  • chumsky

    Write expressive, high-performance parsers with ease.

    Project mention: Lezer: A Parsing System for CodeMirror, Inspired by Tree-Sitter | news.ycombinator.com | 2024-03-24

    I attempted to use this but was disheartened but the fact that it doesn't statically type node names. Tree Sitter doesn't either but it has much more of an excuse given that it targets C.

    https://github.com/lezer-parser/lezer/issues/8

    The dev seems mildly hostile to outside involvement too, so I moved on. These days I use Chumsky which is Rust rather than Typescript, but also way more awesome, if you can deal with the often incomprehensible compilation errors at least!

    https://github.com/zesterer/chumsky

  • logos

    Create ridiculously fast Lexers (by maciejhirsz)

  • rust-peg

    Parsing Expression Grammar (PEG) parser generator for Rust

    Project mention: nom > regex | /r/rust | 2023-12-06

    And some related parser tools: - https://github.com/kevinmehall/rust-peg - https://github.com/pest-parser/pest - https://github.com/lalrpop/lalrpop

  • pom

    PEG parser combinators using operator overloading without macros.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • binjs-ref

    Reference implementation for the JavaScript Binary AST format

  • rust-lexical

    Fast numeric to- and from-string conversion routines.

  • mail-parser

    Fast and robust e-mail parsing library for Rust (by stalwartlabs)

  • tokay

    Tokay is a programming language designed for ad-hoc parsing, inspired by awk.

  • untrusted

    Safe, fast, zero-panic, zero-crashing, zero-allocation parsing of untrusted inputs in Rust. (by briansmith)

  • html5gum

    A WHATWG-compliant HTML5 tokenizer and tag soup parser

  • jsonpath

    JsonPath engine written in Rust. Webassembly and Javascript support too (by freestrings)

  • codeparser

    Parse Wolfram Language source code as abstract syntax trees (ASTs) or concrete syntax trees (CSTs)

    Project mention: The Story Continues: Announcing Version 14 of Wolfram Language and Mathematica | news.ycombinator.com | 2024-01-12
  • lelwel

    Resilient LL(1) parser generator for Rust

    Project mention: Lelwel: A resilient LL(1) parser generator for Rust | news.ycombinator.com | 2024-07-12
  • meta

    A DSL parsing library for human readable text documents (by PistonDevelopers)

  • configure_me

    A Rust library for processing application configuration easily

  • dpar

    Neural network transition-based dependency parser (in Rust)

  • faster-pest

    A generator for high-performance Pest parsers, bringing your grammar to the next level

  • pdl

  • peginator

    PEG parser generator for creating ASTs in Rust

  • sgf-parse

    SGF parsing library for Rust.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Rust Parsing discussion

Log in or Post with

Rust Parsing related posts

Index

What are some of the best open-source Parsing projects in Rust? This list will help you:

Project Stars
1 tree-sitter 17,338
2 lightningcss 6,167
3 pest 4,507
4 chumsky 3,446
5 logos 2,717
6 rust-peg 1,425
7 pom 491
8 binjs-ref 427
9 rust-lexical 290
10 mail-parser 275
11 tokay 236
12 untrusted 196
13 html5gum 148
14 jsonpath 122
15 codeparser 119
16 lelwel 104
17 meta 89
18 configure_me 60
19 dpar 42
20 faster-pest 41
21 pdl 37
22 peginator 32
23 sgf-parse 13

Sponsored
Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com

Did you konow that Rust is
the 5th most popular programming language
based on number of metions?