From bca39860f9d16b969d499a9f81d9e26d7f6c8c0f Mon Sep 17 00:00:00 2001 From: sforman Date: Sun, 12 Nov 2023 09:59:02 -0800 Subject: [PATCH] Better definition for enstacken. --- implementations/C/Makefile | 2 +- implementations/defs.txt | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/implementations/C/Makefile b/implementations/C/Makefile index 1f26c74..b38e0bf 100644 --- a/implementations/C/Makefile +++ b/implementations/C/Makefile @@ -7,7 +7,7 @@ CFLAGS = -ansi -Wall -Wextra -Werror -pedantic -Wstrict-overflow -fno-strict-ali CFLAGS += -I/usr/local/include -# TODO: move these to KEYWORDS.txt. +# TODO: move these to KEYWORDS.in. GPERF_OPTS = --readonly-tables --enum --includes --hash-function-name=keyword_hash #--global-table diff --git a/implementations/defs.txt b/implementations/defs.txt index 934989a..444b137 100644 --- a/implementations/defs.txt +++ b/implementations/defs.txt @@ -24,7 +24,7 @@ binary unary popd ccccons ccons ccons ccons cons cons choice [pop] [popd] branch -clear [] swaack pop +clear enstacken pop cleave fork popdd clop cleave popdd cmp [[>] swap] dipd [ifte] ccons [=] swons ifte @@ -42,7 +42,7 @@ dupdd [dup] dipd dupd [dup] dip dupdipd dup dipd dupdip dupd dip -enstacken stack [clear] dip +enstacken [] swaack first uncons pop first_two uncons first flatten <{} [concat] step @@ -106,6 +106,7 @@ spiral_next [[[abs] ii <=] [[<>] [pop !-] or] and] [[!-] [[++]] [[--]] ifte dip] split_at [drop] [take] clop split_list [take reverse] [drop] clop sqr dup mul +stack enstacken dup cons swaack pop stackd [stack] dip step_zero 0 roll> step stuncons stack uncons @@ -123,7 +124,7 @@ unary nullary popd uncons [first] dupdip rest unit [] cons unquoted [i] dip -unstack [[] swaack] dip swoncat swaack pop +unstack [enstacken] dip swoncat swaack pop unswons uncons swap while swap nulco dupdipd concat loop x dup i