HAL
parser.h File Reference
Include dependency graph for parser.h:

Go to the source code of this file.

Classes

struct  hal::BooleanFunctionParser::Token
 Token refers to a token identifier and accompanied data. More...
 

Namespaces

 hal
 
 hal::BooleanFunctionParser
 

Enumerations

enum class  hal::BooleanFunctionParser::ParserType { hal::BooleanFunctionParser::Liberty , hal::BooleanFunctionParser::Standard }
 ParserType refers to the parser identifier. More...
 
enum class  hal::BooleanFunctionParser::TokenType {
  hal::BooleanFunctionParser::And , hal::BooleanFunctionParser::Not , hal::BooleanFunctionParser::NotSuffix , hal::BooleanFunctionParser::Or ,
  hal::BooleanFunctionParser::Xor , hal::BooleanFunctionParser::Variable , hal::BooleanFunctionParser::Constant , hal::BooleanFunctionParser::BracketOpen ,
  hal::BooleanFunctionParser::BracketClose
}
 TokenType refers to a token identifier for a Boolean function string. More...
 

Functions

Result< std::vector< Token > > hal::BooleanFunctionParser::parse_with_standard_grammar (const std::string &expression)
 
Result< std::vector< Token > > hal::BooleanFunctionParser::parse_with_liberty_grammar (const std::string &expression)
 
Result< std::vector< Token > > hal::BooleanFunctionParser::reverse_polish_notation (std::vector< Token > &&tokens, const std::string &expression, const ParserType &parser)
 
Result< BooleanFunction > hal::BooleanFunctionParser::translate (std::vector< Token > &&tokens, const std::string &expression)