From a3a630dfee207c111213d2cad85ceb983df7625a Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 16 Jan 2025 16:14:40 +0100 Subject: Implement .def/.defined expressions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This can be combined with .if/.elsif statements just like any other expression. Signed-off-by: Miquel Sabaté Solà --- lib/xixanta/src/node.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/xixanta/src/node.rs') diff --git a/lib/xixanta/src/node.rs b/lib/xixanta/src/node.rs index ae79f1e..f1eb558 100644 --- a/lib/xixanta/src/node.rs +++ b/lib/xixanta/src/node.rs @@ -147,6 +147,7 @@ pub enum ControlType { Elsif, Else, EndIf, + Defined, } impl fmt::Display for ControlType { @@ -174,6 +175,7 @@ impl fmt::Display for ControlType { ControlType::Elsif => write!(f, ".elsif"), ControlType::Else => write!(f, ".else"), ControlType::EndIf => write!(f, ".endif"), + ControlType::Defined => write!(f, ".defined"), } } } -- cgit v1.2.3