mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Introduce Approx
This commit is contained in:
parent
5da8a29015
commit
67a507080d
5 changed files with 60 additions and 24 deletions
|
@ -9,6 +9,7 @@ pub enum Expr {
|
|||
// Literals
|
||||
Int(i64),
|
||||
Frac(i64, i64),
|
||||
Approx(f64),
|
||||
EmptyStr,
|
||||
Str(String),
|
||||
InterpolatedStr(Vec<(String, Located<Ident>)>, String),
|
||||
|
@ -55,7 +56,7 @@ impl Expr {
|
|||
let transformed = transform(self);
|
||||
|
||||
match transformed {
|
||||
Int(_) | Frac(_, _) | EmptyStr | Str(_) | Char(_) | Var(_) | EmptyRecord | InterpolatedStr(_, _) => transformed,
|
||||
Int(_) | Frac(_, _) | Approx(_) | EmptyStr | Str(_) | Char(_) | Var(_) | EmptyRecord | InterpolatedStr(_, _) => transformed,
|
||||
Assign(pattern, expr1, expr2) => {
|
||||
Assign(
|
||||
pattern,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue