Types from_spec(const std::string &spec)
Constructs a set of types from a shorthand string representation.
Toplevel namespace with entry points for the new API.
Header file for the various classes representing the types of values available in cQASM...
Namespace for the "new" cQASM 1.x API.
tree::One< TypeBase > Type
A cQASM type.
::tree::base::Any< T > Any
bool type_check(const Type &expected, const Type &actual)
Returns whether the actual type matches the constraints of the expected type.
tree::Any< TypeBase > Types
Zero or more cQASM types.
std::ostream & operator<<(std::ostream &os, const Type &type)
Stream << overload for a single type.
::tree::base::One< T > One