errantsky / nom-toml-parser

A TOML parser written in Rust with Nom parser combinator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Nom-based TOML parser in Rust

As an exercise to learn more about Rust, I decided to write a parser using Nom to read TOML files, particularly Cargo.toml files.

Parsers for different TOML values are kept in separate modules in /src/parsers. Unit tests for each module is located in the bottom of each file. Tests in /src/parsers/mod.rs parse Cargo.toml files from a few different Rust crates, including Nom and cargo-expand. These files and more can be found in the assets folder.

About

A TOML parser written in Rust with Nom parser combinator

License:MIT License


Languages

Language:Rust 100.0%