differentiate floor and regular division
This commit is contained in:
@@ -47,6 +47,7 @@ pub enum Op {
|
||||
Sub,
|
||||
Mul,
|
||||
Div,
|
||||
FloorDiv,
|
||||
Exp,
|
||||
Equ,
|
||||
Mod,
|
||||
@@ -180,6 +181,7 @@ impl<R: BufRead> Tokenizer<R> {
|
||||
("-", Op::Sub),
|
||||
("*", Op::Mul),
|
||||
("/", Op::Div),
|
||||
("//", Op::FloorDiv),
|
||||
("**", Op::Exp),
|
||||
("%", Op::Mod),
|
||||
("=", Op::Equ),
|
||||
|
||||
Reference in New Issue
Block a user