15 breaking releases

0.17.0 Oct 14, 2021
0.15.0 Oct 14, 2021

#1249 in Text processing

Download history 45/week @ 2024-02-23 14/week @ 2024-03-01

59 downloads per month

MIT license

19KB
515 lines

A parsing library heavily leveraged by proc_macro.

In resrap, syntax trees are defined by the structure of data types implmenting [Parse].

Given T : Parse, a resrap::Result<T> is returned by passing a [Position] to T::parse.

Along with the [Parse] trait, there's also a derive macro of the same name which automatically implements [Parse] for a struct or enum, given each of its members or variants also implement it.

Dependencies

~3–4.5MB
~87K SLoC