Move ComparisonNumber into the library and add an OwnedLiteral for booleans.

This commit is contained in:
Tom Alexander
2020-06-14 17:08:01 -04:00
parent 8ab315abfe
commit 83c86ff9b3
6 changed files with 148 additions and 169 deletions

View File

@@ -123,6 +123,11 @@ pub enum OwnedLiteral {
LPositiveInteger(u64),
LNegativeInteger(i64),
LFloat(f64),
// Unlike the other OwnedLiterals, booleans cannot occur in DustJS
// templates because true/false are not reserved
// names. Regardless, they are needed here for type casting in the
// renderer.
LBoolean(bool),
}
#[derive(Debug, PartialEq)]