All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] slof/engine.in: refine +COMP and -COMP by not using COMPILE
@ 2024-02-02  5:15 Kautuk Consul
  2024-02-12  9:28 ` Kautuk Consul
  2024-02-22  7:38 ` Kautuk Consul
  0 siblings, 2 replies; 18+ messages in thread
From: Kautuk Consul @ 2024-02-02  5:15 UTC (permalink / raw)
  To: Segher Boessenkool, Thomas Huth, aik, groug; +Cc: slof, kvm-ppc, Kautuk Consul

Use the standard "DOTICK <word> COMPILE," mechanism in +COMP and -COMP
as is being used by the rest of the compiler.
Also use "SEMICOLON" instead of "EXIT" to compile into HERE in -COMP
as that is more informative as it mirrors the way the col() macro defines
a colon definition.

Signed-off-by: Kautuk Consul <kconsul@linux.vnet.ibm.com>
---
 slof/engine.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/slof/engine.in b/slof/engine.in
index 59e82f1..fa4d82e 100644
--- a/slof/engine.in
+++ b/slof/engine.in
@@ -422,8 +422,8 @@ imm(.( LIT(')') PARSE TYPE)
 col(COMPILE R> CELL+ DUP @ COMPILE, >R)
 
 var(THERE 0)
-col(+COMP STATE @ 1 STATE +! 0BRANCH(1) EXIT HERE THERE ! COMP-BUFFER DOTO HERE COMPILE DOCOL)
-col(-COMP -1 STATE +! STATE @ 0BRANCH(1) EXIT COMPILE EXIT THERE @ DOTO HERE COMP-BUFFER EXECUTE)
+col(+COMP STATE @ 1 STATE +! 0BRANCH(1) EXIT HERE THERE ! COMP-BUFFER DOTO HERE DOTICK DOCOL COMPILE,)
+col(-COMP -1 STATE +! STATE @ 0BRANCH(1) EXIT DOTICK SEMICOLON COMPILE, THERE @ DOTO HERE COMP-BUFFER EXECUTE)
 
 // Structure words.
 col(RESOLVE-ORIG HERE OVER CELL+ - SWAP !)
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2024-05-28  4:02 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-02  5:15 [PATCH v2] slof/engine.in: refine +COMP and -COMP by not using COMPILE Kautuk Consul
2024-02-12  9:28 ` Kautuk Consul
2024-02-23 20:57   ` Segher Boessenkool
2024-02-26  4:39     ` Kautuk Consul
2024-03-07  6:33       ` Kautuk Consul
2024-03-18  5:12         ` Kautuk Consul
2024-05-22  9:04           ` Kautuk Consul
2024-05-27 12:33             ` Alexey Kardashevskiy
2024-05-28  4:02               ` Kautuk Consul
2024-02-22  7:38 ` Kautuk Consul
2024-02-22  9:04   ` Thomas Huth
2024-02-22 11:46     ` Kautuk Consul
2024-02-23  5:59       ` Kautuk Consul
2024-02-23 21:04         ` Segher Boessenkool
2024-02-26  4:32           ` Kautuk Consul
2024-02-26  4:43             ` Kautuk Consul
2024-02-26  6:47               ` Kautuk Consul
2024-02-26  6:59                 ` Kautuk Consul

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.