Mungojerrie  1.1
Mungojerrie
Classes | Public Member Functions | Public Attributes | List of all members
p_driver Class Reference

Scanning and parsing of (restricted) PRISM models. More...

#include <Pdriver.hh>

Public Member Functions

 p_driver (Model &model, std::vector< std::pair< std::string, std::string >> const &defines, Verbosity::Level verbosity=Verbosity::Silent)
 Constructor.
 
void scan_begin (void)
 Starts the scanner.
 
void scan_end (void)
 Ends the scanner.
 
int parse (std::string const &f)
 Runs the parser. More...
 
void error (pparser::location const &l, std::string const &m)
 Error handling function for the scanner.
 
void error (std::string const &m)
 Error handling function for the scanner.
 
void semantic_error (ast::LocationType const &l, std::string const &m) const
 Semantic error handling for the driver.
 

Public Attributes

std::string file
 
std::vector< ast::Labellabels
 
std::vector< ast::Constantconstants
 
std::vector< ast::Formulaformulae
 
std::vector< ast::Modulemodules
 
std::vector< ast::ModuleRenamingrenamings
 
std::vector< ast::RewardSectionrewards
 
std::vector< ast::Playerplayers
 
std::vector< ast::Variableglobals
 
Verbosity::Level verbosity
 
ast::ModelType modelType
 

Detailed Description

Scanning and parsing of (restricted) PRISM models.

Member Function Documentation

◆ parse()

int p_driver::parse ( std::string const &  f)

Runs the parser.

Returns
0 on success.

The documentation for this class was generated from the following files: