libqasm
library for handling cQASM files
Namespaces | Functions
cqasm-v1.cpp File Reference

Implementation for cqasm-v1.hpp. More...

Go to the source code of this file.

Namespaces

 cqasm
 Toplevel namespace with entry points for the new API.
 
 cqasm::v1
 Namespace for the "new" cQASM 1.x API.
 

Functions

tree::One< semantic::Program > cqasm::v1::analyze (const std::string &filename, const std::string &api_version)
 Parses and analyzes the given file with the default analyzer, dumping error messages to stderr and throwing an analyzer::AnalysisFailed on failure. More...
 
tree::One< semantic::Program > cqasm::v1::analyze (FILE *file, const std::string &filename, const std::string &api_version)
 Parses and analyzes the given file pointer with the default analyzer, dumping error messages to stderr and throwing an analyzer::AnalysisFailed on failure. More...
 
tree::One< semantic::Program > cqasm::v1::analyze_string (const std::string &data, const std::string &filename, const std::string &api_version)
 Parses and analyzes the given string with the default analyzer, dumping error messages to stderr and throwing an analyzer::AnalysisFailed on failure. More...
 
analyzer::Analyzer cqasm::v1::default_analyzer (const std::string &api_version)
 Constructs an Analyzer object with the defaults for cQASM 1.0 already loaded into it. More...
 

Detailed Description

Implementation for cqasm-v1.hpp.

Definition in file cqasm-v1.cpp.

#include "cqasm-v1.hpp"
Include dependency graph for cqasm-v1.cpp: