#parse #position #type

nightly resrap

A parser library

15 breaking releases

0.17.0 Oct 14, 2021
0.15.0 Oct 14, 2021

#92 in #position

47 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.5–4.5MB
~91K SLoC