mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Split out some modules
This commit is contained in:
parent
e05230519e
commit
01cd0cfbe1
7 changed files with 87 additions and 66 deletions
16
src/expr.rs
Normal file
16
src/expr.rs
Normal file
|
@ -0,0 +1,16 @@
|
|||
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
|
||||
pub enum Operator {
|
||||
Plus, Minus, FloatDivision, IntDivision,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub enum Expr {
|
||||
HexOctalBinary(i64), // : Int
|
||||
FractionalNumber(f64), // : Float
|
||||
WholeNumber(i64), // : Int | Float
|
||||
|
||||
// Functions
|
||||
CallOperator(Operator, Box<Expr>, Box<Expr>),
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue