pub struct ByMCParser;Expand description
Parser for the ByMC format
This parser implements the ParseToTA trait and can be used to parse
threshold automata given in the ByMC format as introduced by
BYMC.
Implementations§
Source§impl ByMCParser
impl ByMCParser
Trait Implementations§
Source§impl Default for ByMCParser
impl Default for ByMCParser
Source§impl ParseTA for ByMCParser
impl ParseTA for ByMCParser
Source§fn parse_ta(&self, input: &str) -> Result<GeneralThresholdAutomaton, Error>
fn parse_ta(&self, input: &str) -> Result<GeneralThresholdAutomaton, Error>
Parse a string in the ByMC to a threshold automaton
§Example
use crate::taco_parser::bymc::ByMCParser;
use crate::taco_parser::*;
let spec = "skel Proc {
parameters n;
assumptions (1) {
n >= 0;
}
locations (0) {}
inits (0) {}
rules (0) {}
}";
let parser = ByMCParser::new();
let ta = parser.parse_ta(spec).unwrap();Source§impl ParseTAWithLTL for ByMCParser
impl ParseTAWithLTL for ByMCParser
Source§fn parse_ta_and_spec(
&self,
input: &str,
) -> Result<(GeneralThresholdAutomaton, ELTLSpecification), Error>
fn parse_ta_and_spec( &self, input: &str, ) -> Result<(GeneralThresholdAutomaton, ELTLSpecification), Error>
Try to parse the threshold automaton and LTL specification from a string. Read more
Auto Trait Implementations§
impl Freeze for ByMCParser
impl RefUnwindSafe for ByMCParser
impl Send for ByMCParser
impl Sync for ByMCParser
impl Unpin for ByMCParser
impl UnwindSafe for ByMCParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more