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

@@ -73,10 +73,10 @@ fn character_editor_view<'a>(editor: &'a Editor, char_name: &str) -> Element<'a,
// Show all fields with soft metadata styling
for (field_name, field_value) in &char.fields {
let value_text = match field_value {
| Value::Int(n) => format!("{}", n),
| Value::Float(n) => format!("{}", n),
| Value::String(s) => s.clone(),
| Value::Bool(b) => format!("{}", b),
| Value::Number(n) => format!("{}", n),
| Value::Decimal(n) => format!("{}", n),
| Value::Text(s) => s.clone(),
| Value::Boolean(b) => format!("{}", b),
| Value::List(items) => {
format!("[{} items]", items.len())
},