valkyrie-ast 0.0.3

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

impl Display for NumberLiteralNode {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        match &self.unit {
            Some(s) => write!(f, "{}{}", self.value, s),
            None => write!(f, "{}", self.value),
        }
    }
}