Skip to main content

Crate svugy_parse

Crate svugy_parse 

Source
Expand description

Parse diagrams written in Markdown, d2 or JSON into the svugy model, through one diagnostic harness, and print a model back as Markdown or JSON.

Modules§

d2
Import a d2 v0.9.0 file into the model through svugy’s v1 d2 subset and its vars: { svugy: { … } } carrier, reporting every syntax error and ignored construct.
diagnostic
Report what a source language rejects or ignores, and gate the model on it, the same way for every language the crate reads.
json
Load a model from id-keyed JSON, rejecting duplicate keys and v3 keys and admitting it through every check, and print a model back as JSON.
markdown
Parse a diagram written in Markdown into the model, reporting every error in one pass, and print a model back as Markdown.