n3-parser 0.3.5

Super-Simple semantic neural network model parser.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[test]
fn test_variables() {
  const MODEL: &str = "
[VarModel]
  * F: F o o
  * S: stride = 3

  * unsigned integer = 42
  * negative integer = -42
  * real = 3.14
  * bool true = yes
  * bool false = no
  * [Model Variable]
  * [Optional Model Variable] = Default Model
";

  n3_parser::parser::parse_file(MODEL).unwrap();
}