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

Main include file for parsing v1 files. 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

Main include file for parsing v1 files.

Definition in file cqasm-v1.hpp.

#include "cqasm-v1-parse-helper.hpp"
#include "cqasm-v1-analyzer.hpp"
Include dependency graph for cqasm-v1.hpp:
This graph shows which files directly or indirectly include this file: