Only IntLiteral

Signed/unsigned is via - operator
This commit is contained in:
greg 2017-09-11 03:10:10 -07:00
parent 14c09bb40c
commit 92ece39d5e
1 changed files with 2 additions and 3 deletions

View File

@ -360,8 +360,7 @@ pub enum Declaration {
#[derive(Debug, PartialEq)] #[derive(Debug, PartialEq)]
pub enum Expression { pub enum Expression {
UnsignedIntLiteral(u64), IntLiteral(u64),
SignedIntLiteral(i64),
FloatLiteral(f64), FloatLiteral(f64),
} }
@ -453,7 +452,7 @@ impl Parser {
} }
} else { } else {
match digits.parse::<u64>() { match digits.parse::<u64>() {
Ok(d) => Ok(UnsignedIntLiteral(d)), Ok(d) => Ok(IntLiteral(d)),
Err(e) => unimplemented!("Need to handle numbers that don't parse to a Rust u64 {}", e), Err(e) => unimplemented!("Need to handle numbers that don't parse to a Rust u64 {}", e),
} }
} }