dot_parse 0.2.0

A package to parse DOT-format tokens
Documentation
  • Coverage
  • 0%
    0 out of 11 items documented0 out of 10 items with examples
  • Size
  • Source code size: 48.41 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.36 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • lk-chen

dot_parse-rust

A library for parsing Graphviz DOT language files.

Usage

As executable

cargo run filename.txt

As library

extern crate libdot_parse;

if let Some(graph) = libdot_parse::Graph::parse_from(tokens.as_slice()) {
    println!("{:?}", graph)
} else {
    println!("FAILED")
}

Known Issues

  • strict keyword doesn't apply
  • required to use ; to separate statments
  • executable only separates tokens with whitespace, e.g. color=blue doesn't work, while you have to give color = blue

License

MIT