summaryrefslogtreecommitdiff
path: root/pi/plans/gt-boolean-operators-rpn-only-example.md
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-31 20:29:28 +0300
committerPaul Buetow <paul@buetow.org>2026-05-31 20:29:28 +0300
commit79e08926afcc69954dd7013c68795c63fe5e2bd6 (patch)
treec98baf0d183728cb5b812eb22263a39e678f8be4 /pi/plans/gt-boolean-operators-rpn-only-example.md
parenta6b6a0174d249c10959f0e91c47f68d3328efaae (diff)
cleanup
Diffstat (limited to 'pi/plans/gt-boolean-operators-rpn-only-example.md')
-rw-r--r--pi/plans/gt-boolean-operators-rpn-only-example.md30
1 files changed, 0 insertions, 30 deletions
diff --git a/pi/plans/gt-boolean-operators-rpn-only-example.md b/pi/plans/gt-boolean-operators-rpn-only-example.md
deleted file mode 100644
index 4b55a75..0000000
--- a/pi/plans/gt-boolean-operators-rpn-only-example.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# GT – Boolean Operators (RPN‑Only) – Example Syntax
-
-## Overview
-This plan adds a full set of Boolean comparison operators to the **gt** REPL, **exclusively** in RPN (postfix) form. The operators will be registered in the RPN handler, the RPN value system will be extended to hold booleans, and the change will be documented with usage examples.
-
----
-## Example REPL syntax
-```text
-> rpn 5 3 gt # → true (5 > 3)
-> rpn 3 5 lt # → true (3 < 5)
-> rpn 4 4 gte # → true (4 >= 4)
-> rpn 2 2 lte # → true (2 <= 2)
-> rpn 7 7 eq # → true (7 == 7)
-> rpn 5 7 neq # → true (5 != 7)
-> rpn 10 0 gt # → false (10 > 0 is false)
-
-# Variable assignment with a Boolean result
-> rpn a 5 3 gt = # stores true in variable "a"
-> rpn a # → true
-```
-The operators `gt`, `lt`, `gte`, `lte`, `eq`, and `neq` are the only new tokens; all other REPL functionality remains unchanged.
-
----
-## Plan
-1. Extend the internal RPN value type to represent booleans alongside numbers.
-2. Implement the six postfix Boolean operators (`gt`, `lt`, `gte`, `lte`, `eq`, `neq`) and register them in the RPN operator registry.
-3. Add unit tests and update documentation (godoc and README) with the example syntax above.
-
----
-*This plan is stored at* `/home/paul/.pi/plans/gt-boolean-operators-rpn-only-example.md` *and serves as the reference for any future tasks.* \ No newline at end of file