libqasm
library for handling cQASM files
cqasm-v1-ast.hpp
Go to the documentation of this file.
1 
10 #pragma once
11 
12 #include "cqasm-v1-ast-gen.hpp"
13 #include <iostream>
14 #include <sstream>
15 
16 namespace cqasm {
17 namespace v1 {
18 namespace ast {
19 
26 public:
27  std::ostringstream stream;
28 
32  void push_string(const std::string &str);
33 
37  void push_escape(const std::string &escape);
38 
39 };
40 
41 } // namespace ast
42 } // namespace v1
43 } // namespace cqasm
void push_escape(const std::string &escape)
Pushes an escape sequence into the string.
::tree::base::Base Base
Definition: cqasm-tree.hpp:20
Toplevel namespace with entry points for the new API.
Special/temporary string builder node, used to build strings from fragments and escape sequences whil...
Namespace for the "new" cQASM 1.x API.
void push_string(const std::string &str)
Pushes a string fragment into the string.
Header file for the abstract syntax tree node classes.