Public repository: timo / feel

Reader

An interpreter of FEEL, written in Rust, with integrations for PostgreSQL, WASM, Lua, and Python.

docs: mark Tier 3 (first-class ranges) shipped in ROADMAP

public

docs: mark Tier 3 (first-class ranges) shipped in ROADMAP

Record what landed (range values/literals, range(), relations, in-membership,
instance of range<T>) and narrow the still-deferred set to the genuine
bracket-ambiguity forms (comma-list-of-tests in, reverse brackets, unbounded
ranges, comparison-test-as-range).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Changeset7935ebfd255872b484841d8e6d68c3a6a6c989a9
Author (claimed)Timo Stolz <timo.stolz@gmail.com>,
Parents4fa959396663
Children
Pushlog
by timo via ssh

modified ROADMAP.md +30 −12

@@ -14,11 +14,27 @@
1414
 
1515
 ## Tier 3 — First-class range values
1616
 
17
-**Status:** deferred (architectural). **Payoff:** ~56 cases (`1156-range-function`),
18
-plus the range-equality/relation cases in `0068-feel-equality` and the
19
-list-of-intervals form in `0072-feel-in` (see below).
17
+**Status:** ✅ **shipped.** `Value::Range` + range literals in value position, the
18
+`range(string)` built-in, range equality, `instance of range<T>`, `in`
19
+range-membership, and the 13 §10.3.4.6 relation built-ins all landed (commits
20
+"first-class range values" → "range/point relation builtins"). **Realised payoff:**
21
+`1156-range-function` 41 cases ingested, `0068-feel-equality` +3 (range equality),
22
+`0072-feel-in` +8 (range membership) — suite 2598 → 2650; plus `1130-feel-interval`'s
23
+132-case relation truth table as a unit test (its decisions are boxed contexts the
24
+ingester does not read). **Still deferred:** the bracket-disambiguation forms below
25
+(comma-list-of-tests `in`), reverse-bracket interval literals (`]a..b]` / `[a..b[`),
26
+unbounded ranges (`[1..]`, `(null..10)`), and the comparison-test-as-range value
27
+(`(< 10)`).
2028
 
21
-### What it is
29
+The grammar work needed **no LALR/LR rewrite**: a range literal is a `Primary` that
30
+shares its `"[" Sum` / `"(" Sum` prefix with the list literal / grouping and branches
31
+on `..` vs `]`/`,`/`)` — LR(1)-clean, proven by build.rs's no-conflict gate. The `in`
32
+RHS takes a bare endpoint expression (`unary_test_from_expr` routes a written interval
33
+to the dedicated interval test, anything else to an `Endpoint` evaluated as equality or
34
+range membership). The historical analysis below is retained for the deferred forms.
35
+
36
+### What it is (original analysis)
37
+
2238
 DMN ranges (`[1..10]`, `(a..b)`) are currently only a *test* on the right of `in`
2339
 — they have no value of their own. Full FEEL makes a range a first-class value:
2440
 
@@ -64,18 +80,20 @@
6480
 
6581
 ## `in` unary-test list forms (deferred from Tier 2 / ADR for unary tests)
6682
 
67
-**Status:** comparison tests (`x in < e`, `x in = e`, …) and single intervals
68
-(any endpoints) shipped — `0072-feel-in` is at 247/324 cases. **Payoff of the
69
-rest:** ~77 cases (the remaining `0072` forms).
83
+**Status:** comparison tests (`x in < e`, `x in = e`, …), single intervals (any
84
+endpoints), **bare equality** (`1 in 1`, `date(…) in date(…)`) and **range
85
+membership** (`x in range("[1..3]")`, `x in [a..b]`) shipped — `0072-feel-in` is at
86
+255/324 cases. The bare-endpoint form (`<e:Sum>` → `unary_test_from_expr`) landed
87
+with Tier 3; it is *not* the list ambiguity, so it needed no bracket surgery.
88
+**Payoff of the rest:** ~69 cases (the remaining `0072` forms).
7089
 
71
-Deferred forms, all blocked by the same **interval-vs-list bracket ambiguity** in
72
-LR(1):
90
+Still-deferred forms, all blocked by the same **interval-vs-list bracket ambiguity**
91
+in LR(1) (a bracket here is a *list of tests*, not one value):
7392
 
7493
 - comma-lists: `x in [1, 2, 3]`, `x in (false, true)`, `x in (1, < 5, >= 10)`
7594
   (OR of equality/comparison tests — list membership);
76
-- bare equality: `1 in 1`, `true in true`, `date(…) in date(…)`;
77
-- lists of intervals: `x in [[2..4], [1..3]]` (needs Tier 3 if the elements are
78
-  treated as range *values*, or list-of-tests if treated as nested unary tests);
95
+- lists of intervals: `x in [[2..4], [1..3]]` (OR of nested interval tests — distinct
96
+  from the now-supported `x in <single range value>`);
7997
 - parenthesised single test `(= e)` / `(!= e)`; `not(tests)` negation (the latter
8098
   also collides with the `not(…)` boolean built-in).
8199