#notation #john #parser #serialization #convert

johnrs

Simple library to parse the JOHN notation format

1 unstable release

0.1.0 Feb 11, 2024

#1989 in Parser implementations

MIT license

22KB
565 lines

JOHN.rs

A JOHN parser for Rust! The Jane Object Hierarchy Notation is documented here

It supports parsing the full standard (i think) and stringifying pre-constructed JohnValue contructs.

If you want to stringify a custom type you can contribute to this library by adding some magic genericism or serialization trait or you can implement a conversion trait for values to be directly packed into the JohnValue enum.

Dependencies

~2.2–3MB
~53K SLoC