diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-01-16 16:14:40 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-01-16 16:14:40 +0100 |
| commit | a3a630dfee207c111213d2cad85ceb983df7625a (patch) | |
| tree | 314d3c55e62f437596648704fbd7a81d2c332e44 /lib/xixanta/src/node.rs | |
| parent | 161d7b406b7fba75a2057b8d9e780f521b9bc6bf (diff) | |
| download | tools.nes-a3a630dfee207c111213d2cad85ceb983df7625a.tar.gz tools.nes-a3a630dfee207c111213d2cad85ceb983df7625a.zip | |
Implement .def/.defined expressions
This can be combined with .if/.elsif statements just like any other
expression.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'lib/xixanta/src/node.rs')
| -rw-r--r-- | lib/xixanta/src/node.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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"), } } } |
