JUK1
ElementsRegexBuilder.h
Go to the documentation of this file.
1 #ifndef _ELEMENTSREGEXBUILDER_HPP_INC_
2 #define _ELEMENTSREGEXBUILDER_HPP_INC_
3 #include <string>
4 #include <sstream>
5 #include <regex>
6 
7 // indentifier is the sequence of letters representing the component
8 // simplifiedMatching:
9 // a string detailing how many, and the order of size_ts, and Values, and strings,
10 // and when options start startAnchor "^" endAnchor "$"
26 std::regex
27 generateRegex(std::string indentifier, std::string simplifiedMatching,
28  bool startAnchor = true, bool endAnchor = true);
29 
30 #endif
std::regex generateRegex(std::string indentifier, std::string simplifiedMatching, bool startAnchor=true, bool endAnchor=true)
a helper function to aid in the construction of regexes for parsing netlist files