34 std::unique_ptr<cqasm::v1::analyzer::Analyzer> a;
47 V1Analyzer(
const std::string &max_version =
"1.0",
bool without_defaults=
false);
53 void register_instruction(
54 const std::string &name,
55 const std::string ¶m_types =
"",
56 bool allow_conditional =
true,
57 bool allow_parallel =
true,
58 bool allow_reused_qubits =
false,
59 bool allow_different_index_sizes =
false 66 void register_error_model(
67 const std::string &name,
68 const std::string ¶m_types =
"" 78 const std::string &filename
86 const std::string &data,
87 const std::string &filename =
"<unknown>" 98 std::vector<std::string> analyze_file(
99 const std::string &filename
107 const std::string &data,
108 const std::string &filename =
"<unknown>" tree::One< semantic::Program > 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 ...
Main class for parsing and analyzing cQASM files with the v1 API.
Toplevel namespace with entry points for the new API.
Namespace for the "new" cQASM 1.x API.
ParseResult parse_string(const std::string &data, const std::string &filename)
Parse the given string.
ParseResult parse_file(const std::string &filename)
Parse the given file.