1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Traits for parsers that can parse specifications and threshold automata.
//!
//! This module contains traits that parsers for threshold automata and LTL
//! specifications should implement. The traits are:
//! - `ParseTA`, for parsing threshold automata,
//! - `ParseLTLSpec`, for parsing LTL specifications,
//! - `ParseTAWithLTL`, for parsing threshold automata and LTL specifications.
use Error;
use ELTLSpecification;
use GeneralThresholdAutomaton;
// The pest derive generates errors as the doc comments are missing
// The pest derive generates errors as the doc comments are missing
/// Parse a threshold automaton from a string.
///
/// Parsers for threshold automata should implement this trait.
/// Parse a threshold automaton and an LTL specification from a string.
///
/// If you know a file or input includes both a threshold automaton and an LTL specification, prefer using this
/// trait. Parsers for threshold automata and LTL specifications should implement
/// this trait.