Function blackbird::parse(std::ifstream&)¶
Defined in File Blackbird.h
Function Documentation¶
-
Program *blackbird::parse(std::ifstream &stream)¶
Parse Blackbird code contained within a C++
std::ifstream
file streamTo apply the parser directly to a string container (
std::string
), useparse(std::string &s_input)
.- Parameters
stream – file stream
- Returns
an instance of the Blackbird program containing details about the device, gates, and parameters.