protoflow 0.4.3

Protoflow implements flow-based programming (FBP) for Rust using Protocol Buffers messages.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// This is free and unencumbered software released into the public domain.

use crate::exit::ExitCode;
use protoflow_syntax::SystemParser;
use std::path::PathBuf;

pub fn check(paths: Vec<PathBuf>) -> Result<(), ExitCode> {
    for path in paths {
        let mut parser = SystemParser::from_file(path)?;
        let _ = parser.check()?;
    }
    Ok(())
}

#[derive(Clone, Debug)]
pub enum CheckError {}