Function blackbird::parse(std::ifstream&)

Function Documentation

Program *blackbird::parse(std::ifstream &stream)

Parse Blackbird code contained within a C++ std::ifstream file stream

To apply the parser directly to a string container (std::string), use parse(std::string &s_input).

Return
an instance of the Blackbird program containing details about the device, gates, and parameters.
Parameters
  • stream: file stream