Oga VS nom

Compare Oga vs nom and see what are their differences.

Oga

Oga is an XML/HTML parser written in Ruby. (by yorickpeterse)

nom

Rust parser combinator framework (by rust-bakery)
Our great sponsors
  • PopRuby - Clothing and Accessories for Ruby Developers
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
Oga nom
1 85
1,162 8,943
- 1.6%
4.0 6.5
10 months ago 25 days ago
Ruby Rust
Mozilla Public License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Oga

Posts with mentions or reviews of Oga. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-12-26.
  • How to write a compiler or interpreter in rust
    8 projects | /r/rust | 26 Dec 2021
    In terms of parsing style I suggest sticking with a hand-written recursive-descent parser. Parser generators seem appealing at first, but I always ran into annoying limitations when using them (I wrote one in Ruby myself as well, and used this for this project). Parsing combinators are useful for small inputs, but I find them difficult to use for anything but simple cases.

nom

Posts with mentions or reviews of nom. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-28.

What are some alternatives?

When comparing Oga and nom you can also consider the following projects:

pest - The Elegant Parser

lalrpop - LR(1) parser generator for Rust

combine - A parser combinator library for Rust

pom - PEG parser combinators using operator overloading without macros.

rust-peg - Parsing Expression Grammar (PEG) parser generator for Rust

chumsky - Write expressive, high-performance parsers with ease.

Nokogiri - Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.

chomp - A fast monadic-style parser combinator designed to work on stable Rust.

serde - Serialization framework for Rust

Ox - Ruby Optimized XML Parser

rust-csv - A CSV parser for Rust, with Serde support.

HTML::Pipeline - HTML processing filters and utilities