#nom #syn #parser #source #rust-cpp

cpp_syn

Internal rust-cpp nom parser for Rust source code

1 unstable release

Uses old Rust 2015

0.12.0 Mar 5, 2017

#148 in #syn

Download history 182/week @ 2025-12-27 628/week @ 2026-01-03 870/week @ 2026-01-10 476/week @ 2026-01-17 780/week @ 2026-01-24 1578/week @ 2026-01-31 5917/week @ 2026-02-07 5337/week @ 2026-02-14 5659/week @ 2026-02-21 8540/week @ 2026-02-28 10007/week @ 2026-03-07 9111/week @ 2026-03-14 10323/week @ 2026-03-21 13436/week @ 2026-03-28 10930/week @ 2026-04-04 18247/week @ 2026-04-11

53,790 downloads per month
Used in 10 crates (4 directly)

MIT/Apache

340KB
9K SLoC

This module contains a set of exported nom parsers which can be used to parse custom grammars when used alongside the synom crate.

Internally, syn uses a fork of nom called synom which resolves a persistent pitfall of using nom to parse Rust by eliminating the IResult::Incomplete variant. The synom crate should be used instead of nom when working with the parsers in this module.

Dependencies