valkyrie-ast 0.0.3

Abstract Syntax Tree of valkyrie language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::*;

impl Display for StringLiteralNode {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        f.write_str(&self.value)?;
        if let Some(unit) = &self.unit {
            f.write_str(" ")?;
            f.write_str(&unit.name)?;
        }
        Ok(())
    }
}