rustine 0.1.1

High-performance Gel syntax parser transforming to JSON/XML (Rust + PyO3)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![cfg(feature = "python")]
use rustine::bridge::{parse_gel_to_json, parse_gel_to_xml};

#[test]
fn json_parse_dummy() {
    let out = parse_gel_to_json("define ws /\\s+/").unwrap();
    assert!(out.contains("defines"));
    assert!(out.contains("ws"));
}

#[test]
fn xml_parse_dummy() {
    let out = parse_gel_to_xml("define ws /\\s+/").unwrap();
    assert!(out.contains("<gel-document>"));
    assert!(out.contains("<define"));
}