libqasm
library for handling cQASM files
Public Attributes | List of all members
cqasm::v1::parser::ParseResult Class Reference

Parse result information. More...

Public Attributes

ast::One< ast::Rootroot
 Root node of the AST, if analysis was sufficiently successful. More...
 
std::vector< std::string > errors
 List of accumulated errors. More...
 

Detailed Description

Parse result information.

Definition at line 28 of file cqasm-v1-parse-helper.hpp.

#include <cqasm-v1-parse-helper.hpp>

Collaboration diagram for cqasm::v1::parser::ParseResult:
Collaboration graph
[legend]

Member Data Documentation

◆ root

ast::One<ast::Root> cqasm::v1::parser::ParseResult::root

Root node of the AST, if analysis was sufficiently successful.

This may be set even if parsing was not ENTIRELY successful, in which case it will contain one or more error nodes.

Definition at line 36 of file cqasm-v1-parse-helper.hpp.

◆ errors

std::vector<std::string> cqasm::v1::parser::ParseResult::errors

List of accumulated errors.

Analysis was successful if and only if errors.empty().

Definition at line 42 of file cqasm-v1-parse-helper.hpp.


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