openehr-lang 0.0.2

openEHR LANG 1.0.0: BMM/P_BMM object model (generated from BMM) plus a hand-written ODIN instance parser (the `odin` module — deliberately off the codegen path).
Documentation
// @generated by openehr-codegen from BMM (`EXPR_BINARY_OPERATOR`) — DO NOT EDIT.

//! The openEHR `EXPR_BINARY_OPERATOR` spec class, generated from the vendored BMM
//! meta-model.

use crate::beom::core::expression::Expression;
use crate::beom::core::operator_kind::OperatorKind;

/// Binary operator expression node.
#[doc(alias = "EXPR_BINARY_OPERATOR")]
#[derive(Debug, Clone, PartialEq)]
pub struct ExprBinaryOperator {
    // inherited: EXPR_OPERATOR
    /// True if the natural precedence of operators is overridden in the expression represented by this node of the expression tree.
    ///
    /// If True, parentheses should be introduced around the totality of the syntax expression corresponding to this operator node and its operands.
    pub precedence_overridden: Option<bool>,
    /// Operator definition.
    pub operator: OperatorKind,
    /// The symbol actually used in the rule, or intended to be used for serialisation. Must be a member of `operator_def.symbols`.
    pub symbol: Option<String>,
    /// Left operand node.
    pub left_operand: Box<Expression>,
    /// Right operand node.
    pub right_operand: Box<Expression>,
}