refactor(ast): rename value types to Number/Decimal/Text/Boolean

Renamed AST value types for v0.3 naming convention:
- Value::Int -> Value::Number
- Value::Float -> Value::Decimal
- Value::String -> Value::Text
- Value::Bool -> Value::Boolean
- Expr::IntLit -> Expr::NumberLit
- Expr::FloatLit -> Expr::DecimalLit
- Expr::StringLit -> Expr::TextLit
- Expr::BoolLit -> Expr::BooleanLit

Updated all references across parser, resolver, validator, LSP,
query engine, tests, and editor.
This commit is contained in:
2026-02-14 14:03:21 +00:00
parent 8c3c380cfd
commit 8e4bdd3942
21 changed files with 188 additions and 188 deletions

View File

@@ -244,18 +244,18 @@ Field: Field = {
};
Value: Value = {
<NumberLit> => Value::Int(<>),
<DecimalLit> => Value::Float(<>),
<TextLit> => Value::String(<>),
<BoolLit> => Value::Bool(<>),
<NumberLit> => Value::Number(<>),
<DecimalLit> => Value::Decimal(<>),
<TextLit> => Value::Text(<>),
<BoolLit> => Value::Boolean(<>),
"any" => Value::Any,
<lo:NumberLit> ".." <hi:NumberLit> => Value::Range(
Box::new(Value::Int(lo)),
Box::new(Value::Int(hi))
Box::new(Value::Number(lo)),
Box::new(Value::Number(hi))
),
<lo:DecimalLit> ".." <hi:DecimalLit> => Value::Range(
Box::new(Value::Float(lo)),
Box::new(Value::Float(hi))
Box::new(Value::Decimal(lo)),
Box::new(Value::Decimal(hi))
),
<t:Time> => Value::Time(t),
<d:Duration> => Value::Duration(d),
@@ -949,10 +949,10 @@ InequalityOp: CompOp = {
};
Literal: Expr = {
<NumberLit> => Expr::IntLit(<>),
<DecimalLit> => Expr::FloatLit(<>),
<TextLit> => Expr::StringLit(<>),
<BoolLit> => Expr::BoolLit(<>),
<NumberLit> => Expr::NumberLit(<>),
<DecimalLit> => Expr::DecimalLit(<>),
<TextLit> => Expr::TextLit(<>),
<BoolLit> => Expr::BooleanLit(<>),
};
// ===== Helpers =====