Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: minforth Newsgroups: comp.lang.forth Subject: Re: 0 vs. translate-none Date: Wed, 24 Sep 2025 10:44:15 +0200 Lines: 36 Message-ID: References: <2025Sep17.185305@mips.complang.tuwien.ac.at> <2025Sep23.192305@mips.complang.tuwien.ac.at> <2025Sep24.083826@mips.complang.tuwien.ac.at> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net xeeysDt6O46obb2QjBN/UAcjEv6N4AOjaE3CQuvSVJ5U20Y2Gu Cancel-Lock: sha1:XeU6GpJtem3q993+OkuwSWOWoyg= sha256:nlVIkYwj2txACTdW198M8/if+QoHLSVOYHb6pIVS7LU= User-Agent: Mozilla Thunderbird In-Reply-To: Xref: csiph.com comp.lang.forth:134206 Am 24.09.2025 um 10:28 schrieb albert@spenarnc.xs4all.nl: > In article <2025Sep24.083826@mips.complang.tuwien.ac.at>, > Anton Ertl wrote: >> minforth writes: >>> Am 23.09.2025 um 19:23 schrieb Anton Ertl: >>>> minforth writes: >>>>> FWIW I also use suffixes for recognizers: >>>>> let M be a matrix >>>>> M´ auto-transposed >>>>> M~ auto-inverted >>>> >>>> Can you give an example of a matrix with your matrix recognizer? >>>> >>> >>> To be fair, here MinForth displays the matrix/vector stack in the >>> QUIT prompt: >>> >>> MinForth 3.6 (64 bit) (fp matrix) >>> # 0 0 matrix mat ok >>> # m[ 1 2 3 ; 4 5 6 ] ok >> >> Given this syntax, a parsing word M[ suggests itself to me (although I >> generally dislike parsing words and probably would choose a different >> syntax); or maybe a word that switches to a matrix interpreter >> (possibly implemented using the recognizer words, with ] switching >> back. Why did you choose to use a recognizer? > > WORDLIST suggest a different solution with a wordlist MATRIX > MAT( adds MATRIX to the search order > )MAT removes MATRIX from the search order > > Circumstances may prevent this, but I think that is the situation > where wordlists are intended for, create a different interpretation/compile > environment. In principle yes, but wordlists don't hook themselves into the Forth interpreter. IMO this is the only novelty of recognizers.