refactor number bounds

This commit is contained in:
Folkert 2022-05-21 18:53:50 +02:00
parent b46721e43b
commit cb40aab21f
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
7 changed files with 186 additions and 185 deletions

View file

@ -5,7 +5,7 @@ use crate::def::{can_defs_with_return, Def};
use crate::env::Env;
use crate::num::{
finish_parsing_base, finish_parsing_float, finish_parsing_num, float_expr_from_result,
int_expr_from_result, num_expr_from_result, FloatBound, IntBound, NumericBound,
int_expr_from_result, num_expr_from_result, FloatBound, IntBound, NumBound,
};
use crate::pattern::{canonicalize_pattern, BindingsFromPattern, Pattern};
use crate::procedure::References;
@ -82,7 +82,7 @@ pub enum Expr {
// Num stores the `a` variable in `Num a`. Not the same as the variable
// stored in Int and Float below, which is strictly for better error messages
Num(Variable, Box<str>, IntValue, NumericBound),
Num(Variable, Box<str>, IntValue, NumBound),
// Int and Float store a variable to generate better error messages
Int(Variable, Variable, Box<str>, IntValue, IntBound),