|
|
@ -44,10 +44,8 @@ mod grammar { |
|
|
|
let mut string_buffer = String::default(); |
|
|
|
let mut string_buffer = String::default(); |
|
|
|
BufReader::new(source).read_to_string(&mut string_buffer)?; |
|
|
|
BufReader::new(source).read_to_string(&mut string_buffer)?; |
|
|
|
|
|
|
|
|
|
|
|
match turtleDoc(&string_buffer, &mut state, &mut triple_buffer) { |
|
|
|
turtleDoc(&string_buffer, &mut state, &mut triple_buffer)?; |
|
|
|
Ok(_) => Ok(triple_buffer.into_iter()), |
|
|
|
Ok(triple_buffer.into_iter()) |
|
|
|
Err(error) => Err(error.into()), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|