libqasm
library for handling cQASM files
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cqasm::v1::ast::Dumper Class Reference

Visitor class that debug-dumps a tree to a stream. More...

Public Member Functions

 Dumper (std::ostream &out, int indent=0, ::tree::base::PointerMap *ids=nullptr)
 Construct a dumping visitor. More...
 
void visit_node (Node &node) override
 Dumps a Node. More...
 
void visit_add (Add &node) override
 Dumps a Add node. More...
 
void visit_annotated (Annotated &node) override
 Dumps a Annotated node. More...
 
void visit_annotation_data (AnnotationData &node) override
 Dumps a AnnotationData node. More...
 
void visit_arith_op (ArithOp &node) override
 Dumps a ArithOp node. More...
 
void visit_assignment (Assignment &node) override
 Dumps a Assignment node. More...
 
void visit_binary_op (BinaryOp &node) override
 Dumps a BinaryOp node. More...
 
void visit_bitwise_and (BitwiseAnd &node) override
 Dumps a BitwiseAnd node. More...
 
void visit_bitwise_not (BitwiseNot &node) override
 Dumps a BitwiseNot node. More...
 
void visit_bitwise_op (BitwiseOp &node) override
 Dumps a BitwiseOp node. More...
 
void visit_bitwise_or (BitwiseOr &node) override
 Dumps a BitwiseOr node. More...
 
void visit_bitwise_xor (BitwiseXor &node) override
 Dumps a BitwiseXor node. More...
 
void visit_break_statement (BreakStatement &node) override
 Dumps a BreakStatement node. More...
 
void visit_bundle (Bundle &node) override
 Dumps a Bundle node. More...
 
void visit_cmp_eq (CmpEq &node) override
 Dumps a CmpEq node. More...
 
void visit_cmp_ge (CmpGe &node) override
 Dumps a CmpGe node. More...
 
void visit_cmp_gt (CmpGt &node) override
 Dumps a CmpGt node. More...
 
void visit_cmp_le (CmpLe &node) override
 Dumps a CmpLe node. More...
 
void visit_cmp_lt (CmpLt &node) override
 Dumps a CmpLt node. More...
 
void visit_cmp_ne (CmpNe &node) override
 Dumps a CmpNe node. More...
 
void visit_cmp_op (CmpOp &node) override
 Dumps a CmpOp node. More...
 
void visit_continue_statement (ContinueStatement &node) override
 Dumps a ContinueStatement node. More...
 
void visit_divide (Divide &node) override
 Dumps a Divide node. More...
 
void visit_erroneous_expression (ErroneousExpression &node) override
 Dumps a ErroneousExpression node. More...
 
void visit_erroneous_program (ErroneousProgram &node) override
 Dumps a ErroneousProgram node. More...
 
void visit_erroneous_statement (ErroneousStatement &node) override
 Dumps a ErroneousStatement node. More...
 
void visit_expression (Expression &node) override
 Dumps a Expression node. More...
 
void visit_expression_list (ExpressionList &node) override
 Dumps a ExpressionList node. More...
 
void visit_float_literal (FloatLiteral &node) override
 Dumps a FloatLiteral node. More...
 
void visit_for_loop (ForLoop &node) override
 Dumps a ForLoop node. More...
 
void visit_foreach_loop (ForeachLoop &node) override
 Dumps a ForeachLoop node. More...
 
void visit_function_call (FunctionCall &node) override
 Dumps a FunctionCall node. More...
 
void visit_identifier (Identifier &node) override
 Dumps a Identifier node. More...
 
void visit_if_else (IfElse &node) override
 Dumps a IfElse node. More...
 
void visit_if_else_branch (IfElseBranch &node) override
 Dumps a IfElseBranch node. More...
 
void visit_index (Index &node) override
 Dumps a Index node. More...
 
void visit_index_entry (IndexEntry &node) override
 Dumps a IndexEntry node. More...
 
void visit_index_item (IndexItem &node) override
 Dumps a IndexItem node. More...
 
void visit_index_list (IndexList &node) override
 Dumps a IndexList node. More...
 
void visit_index_range (IndexRange &node) override
 Dumps a IndexRange node. More...
 
void visit_instruction (Instruction &node) override
 Dumps a Instruction node. More...
 
void visit_int_divide (IntDivide &node) override
 Dumps a IntDivide node. More...
 
void visit_integer_literal (IntegerLiteral &node) override
 Dumps a IntegerLiteral node. More...
 
void visit_json_literal (JsonLiteral &node) override
 Dumps a JsonLiteral node. More...
 
void visit_logical_and (LogicalAnd &node) override
 Dumps a LogicalAnd node. More...
 
void visit_logical_not (LogicalNot &node) override
 Dumps a LogicalNot node. More...
 
void visit_logical_op (LogicalOp &node) override
 Dumps a LogicalOp node. More...
 
void visit_logical_or (LogicalOr &node) override
 Dumps a LogicalOr node. More...
 
void visit_logical_xor (LogicalXor &node) override
 Dumps a LogicalXor node. More...
 
void visit_mapping (Mapping &node) override
 Dumps a Mapping node. More...
 
void visit_matrix_literal (MatrixLiteral &node) override
 Dumps a MatrixLiteral node. More...
 
void visit_modulo (Modulo &node) override
 Dumps a Modulo node. More...
 
void visit_multiply (Multiply &node) override
 Dumps a Multiply node. More...
 
void visit_negate (Negate &node) override
 Dumps a Negate node. More...
 
void visit_power (Power &node) override
 Dumps a Power node. More...
 
void visit_program (Program &node) override
 Dumps a Program node. More...
 
void visit_repeat_until_loop (RepeatUntilLoop &node) override
 Dumps a RepeatUntilLoop node. More...
 
void visit_root (Root &node) override
 Dumps a Root node. More...
 
void visit_shift_left (ShiftLeft &node) override
 Dumps a ShiftLeft node. More...
 
void visit_shift_op (ShiftOp &node) override
 Dumps a ShiftOp node. More...
 
void visit_shift_right_arith (ShiftRightArith &node) override
 Dumps a ShiftRightArith node. More...
 
void visit_shift_right_logic (ShiftRightLogic &node) override
 Dumps a ShiftRightLogic node. More...
 
void visit_statement (Statement &node) override
 Dumps a Statement node. More...
 
void visit_statement_list (StatementList &node) override
 Dumps a StatementList node. More...
 
void visit_string_literal (StringLiteral &node) override
 Dumps a StringLiteral node. More...
 
void visit_structured (Structured &node) override
 Dumps a Structured node. More...
 
void visit_subcircuit (Subcircuit &node) override
 Dumps a Subcircuit node. More...
 
void visit_subtract (Subtract &node) override
 Dumps a Subtract node. More...
 
void visit_ternary_cond (TernaryCond &node) override
 Dumps a TernaryCond node. More...
 
void visit_unary_op (UnaryOp &node) override
 Dumps a UnaryOp node. More...
 
void visit_variables (Variables &node) override
 Dumps a Variables node. More...
 
void visit_version (Version &node) override
 Dumps a Version node. More...
 
void visit_while_loop (WhileLoop &node) override
 Dumps a WhileLoop node. More...
 
- Public Member Functions inherited from cqasm::v1::ast::VisitorBase
virtual ~VisitorBase ()=default
 Virtual destructor for proper cleanup. More...
 

Protected Member Functions

void write_indent ()
 Writes the current indentation level's worth of spaces. More...
 
- Protected Member Functions inherited from cqasm::v1::ast::Visitor< void >
void raw_visit_node (Node &node, void *retval) override
 Internal visitor function for nodes of any type. More...
 
void raw_visit_node (Node &node, void *retval)
 Internal visitor function for nodes of any type. More...
 
void raw_visit_node (Node &node, void *retval)
 Internal visitor function for nodes of any type. More...
 
void raw_visit_add (Add &node, void *retval) override
 Internal visitor function for Add nodes. More...
 
void raw_visit_add (Add &node, void *retval)
 Internal visitor function for Add nodes. More...
 
void raw_visit_add (Add &node, void *retval)
 Internal visitor function for Add nodes. More...
 
void raw_visit_annotated (Annotated &node, void *retval) override
 Internal visitor function for Annotated nodes. More...
 
void raw_visit_annotated (Annotated &node, void *retval)
 Internal visitor function for Annotated nodes. More...
 
void raw_visit_annotated (Annotated &node, void *retval)
 Internal visitor function for Annotated nodes. More...
 
void raw_visit_annotation_data (AnnotationData &node, void *retval) override
 Internal visitor function for AnnotationData nodes. More...
 
void raw_visit_annotation_data (AnnotationData &node, void *retval)
 Internal visitor function for AnnotationData nodes. More...
 
void raw_visit_annotation_data (AnnotationData &node, void *retval)
 Internal visitor function for AnnotationData nodes. More...
 
void raw_visit_arith_op (ArithOp &node, void *retval) override
 Internal visitor function for ArithOp nodes. More...
 
void raw_visit_arith_op (ArithOp &node, void *retval)
 Internal visitor function for ArithOp nodes. More...
 
void raw_visit_arith_op (ArithOp &node, void *retval)
 Internal visitor function for ArithOp nodes. More...
 
void raw_visit_assignment (Assignment &node, void *retval) override
 Internal visitor function for Assignment nodes. More...
 
void raw_visit_assignment (Assignment &node, void *retval)
 Internal visitor function for Assignment nodes. More...
 
void raw_visit_assignment (Assignment &node, void *retval)
 Internal visitor function for Assignment nodes. More...
 
void raw_visit_binary_op (BinaryOp &node, void *retval) override
 Internal visitor function for BinaryOp nodes. More...
 
void raw_visit_binary_op (BinaryOp &node, void *retval)
 Internal visitor function for BinaryOp nodes. More...
 
void raw_visit_binary_op (BinaryOp &node, void *retval)
 Internal visitor function for BinaryOp nodes. More...
 
void raw_visit_bitwise_and (BitwiseAnd &node, void *retval) override
 Internal visitor function for BitwiseAnd nodes. More...
 
void raw_visit_bitwise_and (BitwiseAnd &node, void *retval)
 Internal visitor function for BitwiseAnd nodes. More...
 
void raw_visit_bitwise_and (BitwiseAnd &node, void *retval)
 Internal visitor function for BitwiseAnd nodes. More...
 
void raw_visit_bitwise_not (BitwiseNot &node, void *retval) override
 Internal visitor function for BitwiseNot nodes. More...
 
void raw_visit_bitwise_not (BitwiseNot &node, void *retval)
 Internal visitor function for BitwiseNot nodes. More...
 
void raw_visit_bitwise_not (BitwiseNot &node, void *retval)
 Internal visitor function for BitwiseNot nodes. More...
 
void raw_visit_bitwise_op (BitwiseOp &node, void *retval) override
 Internal visitor function for BitwiseOp nodes. More...
 
void raw_visit_bitwise_op (BitwiseOp &node, void *retval)
 Internal visitor function for BitwiseOp nodes. More...
 
void raw_visit_bitwise_op (BitwiseOp &node, void *retval)
 Internal visitor function for BitwiseOp nodes. More...
 
void raw_visit_bitwise_or (BitwiseOr &node, void *retval) override
 Internal visitor function for BitwiseOr nodes. More...
 
void raw_visit_bitwise_or (BitwiseOr &node, void *retval)
 Internal visitor function for BitwiseOr nodes. More...
 
void raw_visit_bitwise_or (BitwiseOr &node, void *retval)
 Internal visitor function for BitwiseOr nodes. More...
 
void raw_visit_bitwise_xor (BitwiseXor &node, void *retval) override
 Internal visitor function for BitwiseXor nodes. More...
 
void raw_visit_bitwise_xor (BitwiseXor &node, void *retval)
 Internal visitor function for BitwiseXor nodes. More...
 
void raw_visit_bitwise_xor (BitwiseXor &node, void *retval)
 Internal visitor function for BitwiseXor nodes. More...
 
void raw_visit_break_statement (BreakStatement &node, void *retval) override
 Internal visitor function for BreakStatement nodes. More...
 
void raw_visit_break_statement (BreakStatement &node, void *retval)
 Internal visitor function for BreakStatement nodes. More...
 
void raw_visit_break_statement (BreakStatement &node, void *retval)
 Internal visitor function for BreakStatement nodes. More...
 
void raw_visit_bundle (Bundle &node, void *retval) override
 Internal visitor function for Bundle nodes. More...
 
void raw_visit_bundle (Bundle &node, void *retval)
 Internal visitor function for Bundle nodes. More...
 
void raw_visit_bundle (Bundle &node, void *retval)
 Internal visitor function for Bundle nodes. More...
 
void raw_visit_cmp_eq (CmpEq &node, void *retval) override
 Internal visitor function for CmpEq nodes. More...
 
void raw_visit_cmp_eq (CmpEq &node, void *retval)
 Internal visitor function for CmpEq nodes. More...
 
void raw_visit_cmp_eq (CmpEq &node, void *retval)
 Internal visitor function for CmpEq nodes. More...
 
void raw_visit_cmp_ge (CmpGe &node, void *retval) override
 Internal visitor function for CmpGe nodes. More...
 
void raw_visit_cmp_ge (CmpGe &node, void *retval)
 Internal visitor function for CmpGe nodes. More...
 
void raw_visit_cmp_ge (CmpGe &node, void *retval)
 Internal visitor function for CmpGe nodes. More...
 
void raw_visit_cmp_gt (CmpGt &node, void *retval) override
 Internal visitor function for CmpGt nodes. More...
 
void raw_visit_cmp_gt (CmpGt &node, void *retval)
 Internal visitor function for CmpGt nodes. More...
 
void raw_visit_cmp_gt (CmpGt &node, void *retval)
 Internal visitor function for CmpGt nodes. More...
 
void raw_visit_cmp_le (CmpLe &node, void *retval) override
 Internal visitor function for CmpLe nodes. More...
 
void raw_visit_cmp_le (CmpLe &node, void *retval)
 Internal visitor function for CmpLe nodes. More...
 
void raw_visit_cmp_le (CmpLe &node, void *retval)
 Internal visitor function for CmpLe nodes. More...
 
void raw_visit_cmp_lt (CmpLt &node, void *retval) override
 Internal visitor function for CmpLt nodes. More...
 
void raw_visit_cmp_lt (CmpLt &node, void *retval)
 Internal visitor function for CmpLt nodes. More...
 
void raw_visit_cmp_lt (CmpLt &node, void *retval)
 Internal visitor function for CmpLt nodes. More...
 
void raw_visit_cmp_ne (CmpNe &node, void *retval) override
 Internal visitor function for CmpNe nodes. More...
 
void raw_visit_cmp_ne (CmpNe &node, void *retval)
 Internal visitor function for CmpNe nodes. More...
 
void raw_visit_cmp_ne (CmpNe &node, void *retval)
 Internal visitor function for CmpNe nodes. More...
 
void raw_visit_cmp_op (CmpOp &node, void *retval) override
 Internal visitor function for CmpOp nodes. More...
 
void raw_visit_cmp_op (CmpOp &node, void *retval)
 Internal visitor function for CmpOp nodes. More...
 
void raw_visit_cmp_op (CmpOp &node, void *retval)
 Internal visitor function for CmpOp nodes. More...
 
void raw_visit_continue_statement (ContinueStatement &node, void *retval) override
 Internal visitor function for ContinueStatement nodes. More...
 
void raw_visit_continue_statement (ContinueStatement &node, void *retval)
 Internal visitor function for ContinueStatement nodes. More...
 
void raw_visit_continue_statement (ContinueStatement &node, void *retval)
 Internal visitor function for ContinueStatement nodes. More...
 
void raw_visit_divide (Divide &node, void *retval) override
 Internal visitor function for Divide nodes. More...
 
void raw_visit_divide (Divide &node, void *retval)
 Internal visitor function for Divide nodes. More...
 
void raw_visit_divide (Divide &node, void *retval)
 Internal visitor function for Divide nodes. More...
 
void raw_visit_erroneous_expression (ErroneousExpression &node, void *retval) override
 Internal visitor function for ErroneousExpression nodes. More...
 
void raw_visit_erroneous_expression (ErroneousExpression &node, void *retval)
 Internal visitor function for ErroneousExpression nodes. More...
 
void raw_visit_erroneous_expression (ErroneousExpression &node, void *retval)
 Internal visitor function for ErroneousExpression nodes. More...
 
void raw_visit_erroneous_program (ErroneousProgram &node, void *retval) override
 Internal visitor function for ErroneousProgram nodes. More...
 
void raw_visit_erroneous_program (ErroneousProgram &node, void *retval)
 Internal visitor function for ErroneousProgram nodes. More...
 
void raw_visit_erroneous_program (ErroneousProgram &node, void *retval)
 Internal visitor function for ErroneousProgram nodes. More...
 
void raw_visit_erroneous_statement (ErroneousStatement &node, void *retval) override
 Internal visitor function for ErroneousStatement nodes. More...
 
void raw_visit_erroneous_statement (ErroneousStatement &node, void *retval)
 Internal visitor function for ErroneousStatement nodes. More...
 
void raw_visit_erroneous_statement (ErroneousStatement &node, void *retval)
 Internal visitor function for ErroneousStatement nodes. More...
 
void raw_visit_expression (Expression &node, void *retval) override
 Internal visitor function for Expression nodes. More...
 
void raw_visit_expression (Expression &node, void *retval)
 Internal visitor function for Expression nodes. More...
 
void raw_visit_expression (Expression &node, void *retval)
 Internal visitor function for Expression nodes. More...
 
void raw_visit_expression_list (ExpressionList &node, void *retval) override
 Internal visitor function for ExpressionList nodes. More...
 
void raw_visit_expression_list (ExpressionList &node, void *retval)
 Internal visitor function for ExpressionList nodes. More...
 
void raw_visit_expression_list (ExpressionList &node, void *retval)
 Internal visitor function for ExpressionList nodes. More...
 
void raw_visit_float_literal (FloatLiteral &node, void *retval) override
 Internal visitor function for FloatLiteral nodes. More...
 
void raw_visit_float_literal (FloatLiteral &node, void *retval)
 Internal visitor function for FloatLiteral nodes. More...
 
void raw_visit_float_literal (FloatLiteral &node, void *retval)
 Internal visitor function for FloatLiteral nodes. More...
 
void raw_visit_for_loop (ForLoop &node, void *retval) override
 Internal visitor function for ForLoop nodes. More...
 
void raw_visit_for_loop (ForLoop &node, void *retval)
 Internal visitor function for ForLoop nodes. More...
 
void raw_visit_for_loop (ForLoop &node, void *retval)
 Internal visitor function for ForLoop nodes. More...
 
void raw_visit_foreach_loop (ForeachLoop &node, void *retval) override
 Internal visitor function for ForeachLoop nodes. More...
 
void raw_visit_foreach_loop (ForeachLoop &node, void *retval)
 Internal visitor function for ForeachLoop nodes. More...
 
void raw_visit_foreach_loop (ForeachLoop &node, void *retval)
 Internal visitor function for ForeachLoop nodes. More...
 
void raw_visit_function_call (FunctionCall &node, void *retval) override
 Internal visitor function for FunctionCall nodes. More...
 
void raw_visit_function_call (FunctionCall &node, void *retval)
 Internal visitor function for FunctionCall nodes. More...
 
void raw_visit_function_call (FunctionCall &node, void *retval)
 Internal visitor function for FunctionCall nodes. More...
 
void raw_visit_identifier (Identifier &node, void *retval) override
 Internal visitor function for Identifier nodes. More...
 
void raw_visit_identifier (Identifier &node, void *retval)
 Internal visitor function for Identifier nodes. More...
 
void raw_visit_identifier (Identifier &node, void *retval)
 Internal visitor function for Identifier nodes. More...
 
void raw_visit_if_else (IfElse &node, void *retval) override
 Internal visitor function for IfElse nodes. More...
 
void raw_visit_if_else (IfElse &node, void *retval)
 Internal visitor function for IfElse nodes. More...
 
void raw_visit_if_else (IfElse &node, void *retval)
 Internal visitor function for IfElse nodes. More...
 
void raw_visit_if_else_branch (IfElseBranch &node, void *retval) override
 Internal visitor function for IfElseBranch nodes. More...
 
void raw_visit_if_else_branch (IfElseBranch &node, void *retval)
 Internal visitor function for IfElseBranch nodes. More...
 
void raw_visit_if_else_branch (IfElseBranch &node, void *retval)
 Internal visitor function for IfElseBranch nodes. More...
 
void raw_visit_index (Index &node, void *retval) override
 Internal visitor function for Index nodes. More...
 
void raw_visit_index (Index &node, void *retval)
 Internal visitor function for Index nodes. More...
 
void raw_visit_index (Index &node, void *retval)
 Internal visitor function for Index nodes. More...
 
void raw_visit_index_entry (IndexEntry &node, void *retval) override
 Internal visitor function for IndexEntry nodes. More...
 
void raw_visit_index_entry (IndexEntry &node, void *retval)
 Internal visitor function for IndexEntry nodes. More...
 
void raw_visit_index_entry (IndexEntry &node, void *retval)
 Internal visitor function for IndexEntry nodes. More...
 
void raw_visit_index_item (IndexItem &node, void *retval) override
 Internal visitor function for IndexItem nodes. More...
 
void raw_visit_index_item (IndexItem &node, void *retval)
 Internal visitor function for IndexItem nodes. More...
 
void raw_visit_index_item (IndexItem &node, void *retval)
 Internal visitor function for IndexItem nodes. More...
 
void raw_visit_index_list (IndexList &node, void *retval) override
 Internal visitor function for IndexList nodes. More...
 
void raw_visit_index_list (IndexList &node, void *retval)
 Internal visitor function for IndexList nodes. More...
 
void raw_visit_index_list (IndexList &node, void *retval)
 Internal visitor function for IndexList nodes. More...
 
void raw_visit_index_range (IndexRange &node, void *retval) override
 Internal visitor function for IndexRange nodes. More...
 
void raw_visit_index_range (IndexRange &node, void *retval)
 Internal visitor function for IndexRange nodes. More...
 
void raw_visit_index_range (IndexRange &node, void *retval)
 Internal visitor function for IndexRange nodes. More...
 
void raw_visit_instruction (Instruction &node, void *retval) override
 Internal visitor function for Instruction nodes. More...
 
void raw_visit_instruction (Instruction &node, void *retval)
 Internal visitor function for Instruction nodes. More...
 
void raw_visit_instruction (Instruction &node, void *retval)
 Internal visitor function for Instruction nodes. More...
 
void raw_visit_int_divide (IntDivide &node, void *retval) override
 Internal visitor function for IntDivide nodes. More...
 
void raw_visit_int_divide (IntDivide &node, void *retval)
 Internal visitor function for IntDivide nodes. More...
 
void raw_visit_int_divide (IntDivide &node, void *retval)
 Internal visitor function for IntDivide nodes. More...
 
void raw_visit_integer_literal (IntegerLiteral &node, void *retval) override
 Internal visitor function for IntegerLiteral nodes. More...
 
void raw_visit_integer_literal (IntegerLiteral &node, void *retval)
 Internal visitor function for IntegerLiteral nodes. More...
 
void raw_visit_integer_literal (IntegerLiteral &node, void *retval)
 Internal visitor function for IntegerLiteral nodes. More...
 
void raw_visit_json_literal (JsonLiteral &node, void *retval) override
 Internal visitor function for JsonLiteral nodes. More...
 
void raw_visit_json_literal (JsonLiteral &node, void *retval)
 Internal visitor function for JsonLiteral nodes. More...
 
void raw_visit_json_literal (JsonLiteral &node, void *retval)
 Internal visitor function for JsonLiteral nodes. More...
 
void raw_visit_logical_and (LogicalAnd &node, void *retval) override
 Internal visitor function for LogicalAnd nodes. More...
 
void raw_visit_logical_and (LogicalAnd &node, void *retval)
 Internal visitor function for LogicalAnd nodes. More...
 
void raw_visit_logical_and (LogicalAnd &node, void *retval)
 Internal visitor function for LogicalAnd nodes. More...
 
void raw_visit_logical_not (LogicalNot &node, void *retval) override
 Internal visitor function for LogicalNot nodes. More...
 
void raw_visit_logical_not (LogicalNot &node, void *retval)
 Internal visitor function for LogicalNot nodes. More...
 
void raw_visit_logical_not (LogicalNot &node, void *retval)
 Internal visitor function for LogicalNot nodes. More...
 
void raw_visit_logical_op (LogicalOp &node, void *retval) override
 Internal visitor function for LogicalOp nodes. More...
 
void raw_visit_logical_op (LogicalOp &node, void *retval)
 Internal visitor function for LogicalOp nodes. More...
 
void raw_visit_logical_op (LogicalOp &node, void *retval)
 Internal visitor function for LogicalOp nodes. More...
 
void raw_visit_logical_or (LogicalOr &node, void *retval) override
 Internal visitor function for LogicalOr nodes. More...
 
void raw_visit_logical_or (LogicalOr &node, void *retval)
 Internal visitor function for LogicalOr nodes. More...
 
void raw_visit_logical_or (LogicalOr &node, void *retval)
 Internal visitor function for LogicalOr nodes. More...
 
void raw_visit_logical_xor (LogicalXor &node, void *retval) override
 Internal visitor function for LogicalXor nodes. More...
 
void raw_visit_logical_xor (LogicalXor &node, void *retval)
 Internal visitor function for LogicalXor nodes. More...
 
void raw_visit_logical_xor (LogicalXor &node, void *retval)
 Internal visitor function for LogicalXor nodes. More...
 
void raw_visit_mapping (Mapping &node, void *retval) override
 Internal visitor function for Mapping nodes. More...
 
void raw_visit_mapping (Mapping &node, void *retval)
 Internal visitor function for Mapping nodes. More...
 
void raw_visit_mapping (Mapping &node, void *retval)
 Internal visitor function for Mapping nodes. More...
 
void raw_visit_matrix_literal (MatrixLiteral &node, void *retval) override
 Internal visitor function for MatrixLiteral nodes. More...
 
void raw_visit_matrix_literal (MatrixLiteral &node, void *retval)
 Internal visitor function for MatrixLiteral nodes. More...
 
void raw_visit_matrix_literal (MatrixLiteral &node, void *retval)
 Internal visitor function for MatrixLiteral nodes. More...
 
void raw_visit_modulo (Modulo &node, void *retval) override
 Internal visitor function for Modulo nodes. More...
 
void raw_visit_modulo (Modulo &node, void *retval)
 Internal visitor function for Modulo nodes. More...
 
void raw_visit_modulo (Modulo &node, void *retval)
 Internal visitor function for Modulo nodes. More...
 
void raw_visit_multiply (Multiply &node, void *retval) override
 Internal visitor function for Multiply nodes. More...
 
void raw_visit_multiply (Multiply &node, void *retval)
 Internal visitor function for Multiply nodes. More...
 
void raw_visit_multiply (Multiply &node, void *retval)
 Internal visitor function for Multiply nodes. More...
 
void raw_visit_negate (Negate &node, void *retval) override
 Internal visitor function for Negate nodes. More...
 
void raw_visit_negate (Negate &node, void *retval)
 Internal visitor function for Negate nodes. More...
 
void raw_visit_negate (Negate &node, void *retval)
 Internal visitor function for Negate nodes. More...
 
void raw_visit_power (Power &node, void *retval) override
 Internal visitor function for Power nodes. More...
 
void raw_visit_power (Power &node, void *retval)
 Internal visitor function for Power nodes. More...
 
void raw_visit_power (Power &node, void *retval)
 Internal visitor function for Power nodes. More...
 
void raw_visit_program (Program &node, void *retval) override
 Internal visitor function for Program nodes. More...
 
void raw_visit_program (Program &node, void *retval)
 Internal visitor function for Program nodes. More...
 
void raw_visit_program (Program &node, void *retval)
 Internal visitor function for Program nodes. More...
 
void raw_visit_repeat_until_loop (RepeatUntilLoop &node, void *retval) override
 Internal visitor function for RepeatUntilLoop nodes. More...
 
void raw_visit_repeat_until_loop (RepeatUntilLoop &node, void *retval)
 Internal visitor function for RepeatUntilLoop nodes. More...
 
void raw_visit_repeat_until_loop (RepeatUntilLoop &node, void *retval)
 Internal visitor function for RepeatUntilLoop nodes. More...
 
void raw_visit_root (Root &node, void *retval) override
 Internal visitor function for Root nodes. More...
 
void raw_visit_root (Root &node, void *retval)
 Internal visitor function for Root nodes. More...
 
void raw_visit_root (Root &node, void *retval)
 Internal visitor function for Root nodes. More...
 
void raw_visit_shift_left (ShiftLeft &node, void *retval) override
 Internal visitor function for ShiftLeft nodes. More...
 
void raw_visit_shift_left (ShiftLeft &node, void *retval)
 Internal visitor function for ShiftLeft nodes. More...
 
void raw_visit_shift_left (ShiftLeft &node, void *retval)
 Internal visitor function for ShiftLeft nodes. More...
 
void raw_visit_shift_op (ShiftOp &node, void *retval) override
 Internal visitor function for ShiftOp nodes. More...
 
void raw_visit_shift_op (ShiftOp &node, void *retval)
 Internal visitor function for ShiftOp nodes. More...
 
void raw_visit_shift_op (ShiftOp &node, void *retval)
 Internal visitor function for ShiftOp nodes. More...
 
void raw_visit_shift_right_arith (ShiftRightArith &node, void *retval) override
 Internal visitor function for ShiftRightArith nodes. More...
 
void raw_visit_shift_right_arith (ShiftRightArith &node, void *retval)
 Internal visitor function for ShiftRightArith nodes. More...
 
void raw_visit_shift_right_arith (ShiftRightArith &node, void *retval)
 Internal visitor function for ShiftRightArith nodes. More...
 
void raw_visit_shift_right_logic (ShiftRightLogic &node, void *retval) override
 Internal visitor function for ShiftRightLogic nodes. More...
 
void raw_visit_shift_right_logic (ShiftRightLogic &node, void *retval)
 Internal visitor function for ShiftRightLogic nodes. More...
 
void raw_visit_shift_right_logic (ShiftRightLogic &node, void *retval)
 Internal visitor function for ShiftRightLogic nodes. More...
 
void raw_visit_statement (Statement &node, void *retval) override
 Internal visitor function for Statement nodes. More...
 
void raw_visit_statement (Statement &node, void *retval)
 Internal visitor function for Statement nodes. More...
 
void raw_visit_statement (Statement &node, void *retval)
 Internal visitor function for Statement nodes. More...
 
void raw_visit_statement_list (StatementList &node, void *retval) override
 Internal visitor function for StatementList nodes. More...
 
void raw_visit_statement_list (StatementList &node, void *retval)
 Internal visitor function for StatementList nodes. More...
 
void raw_visit_statement_list (StatementList &node, void *retval)
 Internal visitor function for StatementList nodes. More...
 
void raw_visit_string_literal (StringLiteral &node, void *retval) override
 Internal visitor function for StringLiteral nodes. More...
 
void raw_visit_string_literal (StringLiteral &node, void *retval)
 Internal visitor function for StringLiteral nodes. More...
 
void raw_visit_string_literal (StringLiteral &node, void *retval)
 Internal visitor function for StringLiteral nodes. More...
 
void raw_visit_structured (Structured &node, void *retval) override
 Internal visitor function for Structured nodes. More...
 
void raw_visit_structured (Structured &node, void *retval)
 Internal visitor function for Structured nodes. More...
 
void raw_visit_structured (Structured &node, void *retval)
 Internal visitor function for Structured nodes. More...
 
void raw_visit_subcircuit (Subcircuit &node, void *retval) override
 Internal visitor function for Subcircuit nodes. More...
 
void raw_visit_subcircuit (Subcircuit &node, void *retval)
 Internal visitor function for Subcircuit nodes. More...
 
void raw_visit_subcircuit (Subcircuit &node, void *retval)
 Internal visitor function for Subcircuit nodes. More...
 
void raw_visit_subtract (Subtract &node, void *retval) override
 Internal visitor function for Subtract nodes. More...
 
void raw_visit_subtract (Subtract &node, void *retval)
 Internal visitor function for Subtract nodes. More...
 
void raw_visit_subtract (Subtract &node, void *retval)
 Internal visitor function for Subtract nodes. More...
 
void raw_visit_ternary_cond (TernaryCond &node, void *retval) override
 Internal visitor function for TernaryCond nodes. More...
 
void raw_visit_ternary_cond (TernaryCond &node, void *retval)
 Internal visitor function for TernaryCond nodes. More...
 
void raw_visit_ternary_cond (TernaryCond &node, void *retval)
 Internal visitor function for TernaryCond nodes. More...
 
void raw_visit_unary_op (UnaryOp &node, void *retval) override
 Internal visitor function for UnaryOp nodes. More...
 
void raw_visit_unary_op (UnaryOp &node, void *retval)
 Internal visitor function for UnaryOp nodes. More...
 
void raw_visit_unary_op (UnaryOp &node, void *retval)
 Internal visitor function for UnaryOp nodes. More...
 
void raw_visit_variables (Variables &node, void *retval) override
 Internal visitor function for Variables nodes. More...
 
void raw_visit_variables (Variables &node, void *retval)
 Internal visitor function for Variables nodes. More...
 
void raw_visit_variables (Variables &node, void *retval)
 Internal visitor function for Variables nodes. More...
 
void raw_visit_version (Version &node, void *retval) override
 Internal visitor function for Version nodes. More...
 
void raw_visit_version (Version &node, void *retval)
 Internal visitor function for Version nodes. More...
 
void raw_visit_version (Version &node, void *retval)
 Internal visitor function for Version nodes. More...
 
void raw_visit_while_loop (WhileLoop &node, void *retval) override
 Internal visitor function for WhileLoop nodes. More...
 
void raw_visit_while_loop (WhileLoop &node, void *retval)
 Internal visitor function for WhileLoop nodes. More...
 
void raw_visit_while_loop (WhileLoop &node, void *retval)
 Internal visitor function for WhileLoop nodes. More...
 

Protected Attributes

std::ostream & out
 Output stream to dump to. More...
 
int indent = 0
 Current indentation level. More...
 
::tree::base::PointerMap * ids
 When non-null, the print node IDs from here instead of link contents. More...
 
bool in_link = false
 Whether we're printing the contents of a link. More...
 

Detailed Description

Visitor class that debug-dumps a tree to a stream.

Definition at line 9864 of file cqasm-v1-ast-gen.hpp.

#include <cqasm-v1-ast-gen.hpp>

Inheritance diagram for cqasm::v1::ast::Dumper:
Inheritance graph
[legend]
Collaboration diagram for cqasm::v1::ast::Dumper:
Collaboration graph
[legend]

Constructor & Destructor Documentation

◆ Dumper()

cqasm::v1::ast::Dumper::Dumper ( std::ostream &  out,
int  indent = 0,
::tree::base::PointerMap *  ids = nullptr 
)
inline

Construct a dumping visitor.

Definition at line 9896 of file cqasm-v1-ast-gen.hpp.

Member Function Documentation

◆ write_indent()

void cqasm::v1::ast::Dumper::write_indent ( )
protected

Writes the current indentation level's worth of spaces.

Definition at line 10514 of file cqasm-v1-ast-gen.cpp.

◆ visit_node()

void cqasm::v1::ast::Dumper::visit_node ( Node node)
overridevirtual

Dumps a Node.

Implements cqasm::v1::ast::Visitor< void >.

Definition at line 10523 of file cqasm-v1-ast-gen.cpp.

◆ visit_add()

void cqasm::v1::ast::Dumper::visit_add ( Add node)
overridevirtual

Dumps a Add node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 10532 of file cqasm-v1-ast-gen.cpp.

◆ visit_annotated()

void cqasm::v1::ast::Dumper::visit_annotated ( Annotated node)
overridevirtual

Dumps a Annotated node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 10576 of file cqasm-v1-ast-gen.cpp.

◆ visit_annotation_data()

void cqasm::v1::ast::Dumper::visit_annotation_data ( AnnotationData node)
overridevirtual

Dumps a AnnotationData node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 10615 of file cqasm-v1-ast-gen.cpp.

◆ visit_arith_op()

void cqasm::v1::ast::Dumper::visit_arith_op ( ArithOp node)
overridevirtual

Dumps a ArithOp node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 10671 of file cqasm-v1-ast-gen.cpp.

◆ visit_assignment()

void cqasm::v1::ast::Dumper::visit_assignment ( Assignment node)
overridevirtual

Dumps a Assignment node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 10715 of file cqasm-v1-ast-gen.cpp.

◆ visit_binary_op()

void cqasm::v1::ast::Dumper::visit_binary_op ( BinaryOp node)
overridevirtual

Dumps a BinaryOp node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 10759 of file cqasm-v1-ast-gen.cpp.

◆ visit_bitwise_and()

void cqasm::v1::ast::Dumper::visit_bitwise_and ( BitwiseAnd node)
overridevirtual

Dumps a BitwiseAnd node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 10803 of file cqasm-v1-ast-gen.cpp.

◆ visit_bitwise_not()

void cqasm::v1::ast::Dumper::visit_bitwise_not ( BitwiseNot node)
overridevirtual

Dumps a BitwiseNot node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 10847 of file cqasm-v1-ast-gen.cpp.

◆ visit_bitwise_op()

void cqasm::v1::ast::Dumper::visit_bitwise_op ( BitwiseOp node)
overridevirtual

Dumps a BitwiseOp node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 10879 of file cqasm-v1-ast-gen.cpp.

◆ visit_bitwise_or()

void cqasm::v1::ast::Dumper::visit_bitwise_or ( BitwiseOr node)
overridevirtual

Dumps a BitwiseOr node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 10923 of file cqasm-v1-ast-gen.cpp.

◆ visit_bitwise_xor()

void cqasm::v1::ast::Dumper::visit_bitwise_xor ( BitwiseXor node)
overridevirtual

Dumps a BitwiseXor node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 10967 of file cqasm-v1-ast-gen.cpp.

◆ visit_break_statement()

void cqasm::v1::ast::Dumper::visit_break_statement ( BreakStatement node)
overridevirtual

Dumps a BreakStatement node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11011 of file cqasm-v1-ast-gen.cpp.

◆ visit_bundle()

void cqasm::v1::ast::Dumper::visit_bundle ( Bundle node)
overridevirtual

Dumps a Bundle node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11050 of file cqasm-v1-ast-gen.cpp.

◆ visit_cmp_eq()

void cqasm::v1::ast::Dumper::visit_cmp_eq ( CmpEq node)
overridevirtual

Dumps a CmpEq node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11108 of file cqasm-v1-ast-gen.cpp.

◆ visit_cmp_ge()

void cqasm::v1::ast::Dumper::visit_cmp_ge ( CmpGe node)
overridevirtual

Dumps a CmpGe node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11152 of file cqasm-v1-ast-gen.cpp.

◆ visit_cmp_gt()

void cqasm::v1::ast::Dumper::visit_cmp_gt ( CmpGt node)
overridevirtual

Dumps a CmpGt node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11196 of file cqasm-v1-ast-gen.cpp.

◆ visit_cmp_le()

void cqasm::v1::ast::Dumper::visit_cmp_le ( CmpLe node)
overridevirtual

Dumps a CmpLe node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11240 of file cqasm-v1-ast-gen.cpp.

◆ visit_cmp_lt()

void cqasm::v1::ast::Dumper::visit_cmp_lt ( CmpLt node)
overridevirtual

Dumps a CmpLt node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11284 of file cqasm-v1-ast-gen.cpp.

◆ visit_cmp_ne()

void cqasm::v1::ast::Dumper::visit_cmp_ne ( CmpNe node)
overridevirtual

Dumps a CmpNe node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11328 of file cqasm-v1-ast-gen.cpp.

◆ visit_cmp_op()

void cqasm::v1::ast::Dumper::visit_cmp_op ( CmpOp node)
overridevirtual

Dumps a CmpOp node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11372 of file cqasm-v1-ast-gen.cpp.

◆ visit_continue_statement()

void cqasm::v1::ast::Dumper::visit_continue_statement ( ContinueStatement node)
overridevirtual

Dumps a ContinueStatement node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11416 of file cqasm-v1-ast-gen.cpp.

◆ visit_divide()

void cqasm::v1::ast::Dumper::visit_divide ( Divide node)
overridevirtual

Dumps a Divide node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11455 of file cqasm-v1-ast-gen.cpp.

◆ visit_erroneous_expression()

void cqasm::v1::ast::Dumper::visit_erroneous_expression ( ErroneousExpression node)
overridevirtual

Dumps a ErroneousExpression node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11499 of file cqasm-v1-ast-gen.cpp.

◆ visit_erroneous_program()

void cqasm::v1::ast::Dumper::visit_erroneous_program ( ErroneousProgram node)
overridevirtual

Dumps a ErroneousProgram node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11516 of file cqasm-v1-ast-gen.cpp.

◆ visit_erroneous_statement()

void cqasm::v1::ast::Dumper::visit_erroneous_statement ( ErroneousStatement node)
overridevirtual

Dumps a ErroneousStatement node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11533 of file cqasm-v1-ast-gen.cpp.

◆ visit_expression()

void cqasm::v1::ast::Dumper::visit_expression ( Expression node)
overridevirtual

Dumps a Expression node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11572 of file cqasm-v1-ast-gen.cpp.

◆ visit_expression_list()

void cqasm::v1::ast::Dumper::visit_expression_list ( ExpressionList node)
overridevirtual

Dumps a ExpressionList node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11589 of file cqasm-v1-ast-gen.cpp.

◆ visit_float_literal()

void cqasm::v1::ast::Dumper::visit_float_literal ( FloatLiteral node)
overridevirtual

Dumps a FloatLiteral node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11628 of file cqasm-v1-ast-gen.cpp.

◆ visit_for_loop()

void cqasm::v1::ast::Dumper::visit_for_loop ( ForLoop node)
overridevirtual

Dumps a ForLoop node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11672 of file cqasm-v1-ast-gen.cpp.

◆ visit_foreach_loop()

void cqasm::v1::ast::Dumper::visit_foreach_loop ( ForeachLoop node)
overridevirtual

Dumps a ForeachLoop node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11759 of file cqasm-v1-ast-gen.cpp.

◆ visit_function_call()

void cqasm::v1::ast::Dumper::visit_function_call ( FunctionCall node)
overridevirtual

Dumps a FunctionCall node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11846 of file cqasm-v1-ast-gen.cpp.

◆ visit_identifier()

void cqasm::v1::ast::Dumper::visit_identifier ( Identifier node)
overridevirtual

Dumps a Identifier node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11890 of file cqasm-v1-ast-gen.cpp.

◆ visit_if_else()

void cqasm::v1::ast::Dumper::visit_if_else ( IfElse node)
overridevirtual

Dumps a IfElse node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 11934 of file cqasm-v1-ast-gen.cpp.

◆ visit_if_else_branch()

void cqasm::v1::ast::Dumper::visit_if_else_branch ( IfElseBranch node)
overridevirtual

Dumps a IfElseBranch node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12004 of file cqasm-v1-ast-gen.cpp.

◆ visit_index()

void cqasm::v1::ast::Dumper::visit_index ( Index node)
overridevirtual

Dumps a Index node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12048 of file cqasm-v1-ast-gen.cpp.

◆ visit_index_entry()

void cqasm::v1::ast::Dumper::visit_index_entry ( IndexEntry node)
overridevirtual

Dumps a IndexEntry node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12092 of file cqasm-v1-ast-gen.cpp.

◆ visit_index_item()

void cqasm::v1::ast::Dumper::visit_index_item ( IndexItem node)
overridevirtual

Dumps a IndexItem node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12109 of file cqasm-v1-ast-gen.cpp.

◆ visit_index_list()

void cqasm::v1::ast::Dumper::visit_index_list ( IndexList node)
overridevirtual

Dumps a IndexList node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12141 of file cqasm-v1-ast-gen.cpp.

◆ visit_index_range()

void cqasm::v1::ast::Dumper::visit_index_range ( IndexRange node)
overridevirtual

Dumps a IndexRange node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12180 of file cqasm-v1-ast-gen.cpp.

◆ visit_instruction()

void cqasm::v1::ast::Dumper::visit_instruction ( Instruction node)
overridevirtual

Dumps a Instruction node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12224 of file cqasm-v1-ast-gen.cpp.

◆ visit_int_divide()

void cqasm::v1::ast::Dumper::visit_int_divide ( IntDivide node)
overridevirtual

Dumps a IntDivide node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12299 of file cqasm-v1-ast-gen.cpp.

◆ visit_integer_literal()

void cqasm::v1::ast::Dumper::visit_integer_literal ( IntegerLiteral node)
overridevirtual

Dumps a IntegerLiteral node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12343 of file cqasm-v1-ast-gen.cpp.

◆ visit_json_literal()

void cqasm::v1::ast::Dumper::visit_json_literal ( JsonLiteral node)
overridevirtual

Dumps a JsonLiteral node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12387 of file cqasm-v1-ast-gen.cpp.

◆ visit_logical_and()

void cqasm::v1::ast::Dumper::visit_logical_and ( LogicalAnd node)
overridevirtual

Dumps a LogicalAnd node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12431 of file cqasm-v1-ast-gen.cpp.

◆ visit_logical_not()

void cqasm::v1::ast::Dumper::visit_logical_not ( LogicalNot node)
overridevirtual

Dumps a LogicalNot node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12475 of file cqasm-v1-ast-gen.cpp.

◆ visit_logical_op()

void cqasm::v1::ast::Dumper::visit_logical_op ( LogicalOp node)
overridevirtual

Dumps a LogicalOp node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12507 of file cqasm-v1-ast-gen.cpp.

◆ visit_logical_or()

void cqasm::v1::ast::Dumper::visit_logical_or ( LogicalOr node)
overridevirtual

Dumps a LogicalOr node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12551 of file cqasm-v1-ast-gen.cpp.

◆ visit_logical_xor()

void cqasm::v1::ast::Dumper::visit_logical_xor ( LogicalXor node)
overridevirtual

Dumps a LogicalXor node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12595 of file cqasm-v1-ast-gen.cpp.

◆ visit_mapping()

void cqasm::v1::ast::Dumper::visit_mapping ( Mapping node)
overridevirtual

Dumps a Mapping node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12639 of file cqasm-v1-ast-gen.cpp.

◆ visit_matrix_literal()

void cqasm::v1::ast::Dumper::visit_matrix_literal ( MatrixLiteral node)
overridevirtual

Dumps a MatrixLiteral node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12702 of file cqasm-v1-ast-gen.cpp.

◆ visit_modulo()

void cqasm::v1::ast::Dumper::visit_modulo ( Modulo node)
overridevirtual

Dumps a Modulo node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12741 of file cqasm-v1-ast-gen.cpp.

◆ visit_multiply()

void cqasm::v1::ast::Dumper::visit_multiply ( Multiply node)
overridevirtual

Dumps a Multiply node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12785 of file cqasm-v1-ast-gen.cpp.

◆ visit_negate()

void cqasm::v1::ast::Dumper::visit_negate ( Negate node)
overridevirtual

Dumps a Negate node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12829 of file cqasm-v1-ast-gen.cpp.

◆ visit_power()

void cqasm::v1::ast::Dumper::visit_power ( Power node)
overridevirtual

Dumps a Power node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12861 of file cqasm-v1-ast-gen.cpp.

◆ visit_program()

void cqasm::v1::ast::Dumper::visit_program ( Program node)
overridevirtual

Dumps a Program node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12905 of file cqasm-v1-ast-gen.cpp.

◆ visit_repeat_until_loop()

void cqasm::v1::ast::Dumper::visit_repeat_until_loop ( RepeatUntilLoop node)
overridevirtual

Dumps a RepeatUntilLoop node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 12961 of file cqasm-v1-ast-gen.cpp.

◆ visit_root()

void cqasm::v1::ast::Dumper::visit_root ( Root node)
overridevirtual

Dumps a Root node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 13024 of file cqasm-v1-ast-gen.cpp.

◆ visit_shift_left()

void cqasm::v1::ast::Dumper::visit_shift_left ( ShiftLeft node)
overridevirtual

Dumps a ShiftLeft node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 13041 of file cqasm-v1-ast-gen.cpp.

◆ visit_shift_op()

void cqasm::v1::ast::Dumper::visit_shift_op ( ShiftOp node)
overridevirtual

Dumps a ShiftOp node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 13085 of file cqasm-v1-ast-gen.cpp.

◆ visit_shift_right_arith()

void cqasm::v1::ast::Dumper::visit_shift_right_arith ( ShiftRightArith node)
overridevirtual

Dumps a ShiftRightArith node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 13129 of file cqasm-v1-ast-gen.cpp.

◆ visit_shift_right_logic()

void cqasm::v1::ast::Dumper::visit_shift_right_logic ( ShiftRightLogic node)
overridevirtual

Dumps a ShiftRightLogic node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 13173 of file cqasm-v1-ast-gen.cpp.

◆ visit_statement()

void cqasm::v1::ast::Dumper::visit_statement ( Statement node)
overridevirtual

Dumps a Statement node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 13217 of file cqasm-v1-ast-gen.cpp.

◆ visit_statement_list()

void cqasm::v1::ast::Dumper::visit_statement_list ( StatementList node)
overridevirtual

Dumps a StatementList node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 13256 of file cqasm-v1-ast-gen.cpp.

◆ visit_string_literal()

void cqasm::v1::ast::Dumper::visit_string_literal ( StringLiteral node)
overridevirtual

Dumps a StringLiteral node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 13295 of file cqasm-v1-ast-gen.cpp.

◆ visit_structured()

void cqasm::v1::ast::Dumper::visit_structured ( Structured node)
overridevirtual

Dumps a Structured node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 13339 of file cqasm-v1-ast-gen.cpp.

◆ visit_subcircuit()

void cqasm::v1::ast::Dumper::visit_subcircuit ( Subcircuit node)
overridevirtual

Dumps a Subcircuit node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 13378 of file cqasm-v1-ast-gen.cpp.

◆ visit_subtract()

void cqasm::v1::ast::Dumper::visit_subtract ( Subtract node)
overridevirtual

Dumps a Subtract node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 13441 of file cqasm-v1-ast-gen.cpp.

◆ visit_ternary_cond()

void cqasm::v1::ast::Dumper::visit_ternary_cond ( TernaryCond node)
overridevirtual

Dumps a TernaryCond node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 13485 of file cqasm-v1-ast-gen.cpp.

◆ visit_unary_op()

void cqasm::v1::ast::Dumper::visit_unary_op ( UnaryOp node)
overridevirtual

Dumps a UnaryOp node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 13541 of file cqasm-v1-ast-gen.cpp.

◆ visit_variables()

void cqasm::v1::ast::Dumper::visit_variables ( Variables node)
overridevirtual

Dumps a Variables node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 13573 of file cqasm-v1-ast-gen.cpp.

◆ visit_version()

void cqasm::v1::ast::Dumper::visit_version ( Version node)
overridevirtual

Dumps a Version node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 13643 of file cqasm-v1-ast-gen.cpp.

◆ visit_while_loop()

void cqasm::v1::ast::Dumper::visit_while_loop ( WhileLoop node)
overridevirtual

Dumps a WhileLoop node.

Reimplemented from cqasm::v1::ast::RecursiveVisitor.

Definition at line 13687 of file cqasm-v1-ast-gen.cpp.

Member Data Documentation

◆ out

std::ostream& cqasm::v1::ast::Dumper::out
protected

Output stream to dump to.

Definition at line 9870 of file cqasm-v1-ast-gen.hpp.

◆ indent

int cqasm::v1::ast::Dumper::indent = 0
protected

Current indentation level.

Definition at line 9875 of file cqasm-v1-ast-gen.hpp.

◆ ids

::tree::base::PointerMap* cqasm::v1::ast::Dumper::ids
protected

When non-null, the print node IDs from here instead of link contents.

Definition at line 9880 of file cqasm-v1-ast-gen.hpp.

◆ in_link

bool cqasm::v1::ast::Dumper::in_link = false
protected

Whether we're printing the contents of a link.

Definition at line 9884 of file cqasm-v1-ast-gen.hpp.


The documentation for this class was generated from the following files: