Re: Fetch string from comment

Liste des GroupesRevenir à cl forth 
Sujet : Re: Fetch string from comment
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forth
Date : 04. Mar 2025, 23:46:14
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <687ff0eebad416a2f284ba186461c6d9c54d91cf@i2pn2.org>
References : 1 2 3
User-Agent : Mozilla Thunderbird
On 5/03/2025 8:02 am, sjack wrote:
...
The enhanced comment is more robust than the existing string operators
that you show in that any mix of printable characters can be contained
in the comment and string operators that base on it. No breaking up
text nor escaping characters needed (by the Forth):
 
.( The function("bar") char ) emit .(  is to be used) \ standard, bah
.( The function("bar") is to be used)                 \ enhanced, ok
." Jack said " char " emit ." boo" char " emit .      \ standard, bah
.( Jack said "boo")                                   \ enhanced, ok
 @( echo -e "Hello World\!") /sys                     \ enhanced, ok

As " solutions go it has a charm to it.  The code is nicely trivial
albeit not idiot-proof ... ( ) needs to be balanced.

For me the other issue was non-graphic characters.  Unable to avoid it
I adopted a simplified form of 200x escapes whereby " becomes \22 .


Date Sujet#  Auteur
3 Mar 25 * Fetch string from comment28sjack
3 Mar 25 +* Re: Fetch string from comment2minforth
4 Mar 25 i`- Re: Fetch string from comment1sjack
4 Mar 25 +* Re: Fetch string from comment10dxf
4 Mar 25 i`* Re: Fetch string from comment9sjack
4 Mar 25 i `* Re: Fetch string from comment8dxf
5 Mar 25 i  +* Re: Fetch string from comment4mhx
5 Mar 25 i  i+- Re: Fetch string from comment1Anton Ertl
5 Mar 25 i  i`* Re: Fetch string from comment2dxf
6 Mar 25 i  i `- Re: Fetch string from comment1dxf
5 Mar 25 i  `* Re: Fetch string from comment3sjack
5 Mar 25 i   `* Re: Fetch string from comment2sjack
5 Mar 25 i    `- Re: Fetch string from comment1minforth
4 Mar 25 +* Re: Fetch string from comment13mhx
5 Mar 25 i`* Re: Fetch string from comment12Gerry Jackson
5 Mar 25 i `* Re: Fetch string from comment11Anton Ertl
5 Mar 25 i  +* Re: Fetch string from comment9mhx
5 Mar 25 i  i`* Re: Fetch string from comment8Anton Ertl
6 Mar 25 i  i `* Re: Fetch string from comment7mhx
6 Mar 25 i  i  `* Re: Fetch string from comment6Anton Ertl
7 Mar 25 i  i   +- Re: Fetch string from comment1mhx
7 Mar 25 i  i   `* Efficient implementation of Finite State Machines (FSM)4Gerry Jackson
9 Mar 25 i  i    `* Re: Efficient implementation of Finite State Machines (FSM)3Anton Ertl
10 Mar 25 i  i     +- Re: Efficient implementation of Finite State Machines (FSM)1Gerry Jackson
11 Mar 25 i  i     `- Re: Efficient implementation of Finite State Machines (FSM)1Anton Ertl
5 Mar 25 i  `- Re: Fetch string from comment1Gerry Jackson
4 Mar 25 +- Re: Fetch string from comment1sjack
7 Mar 25 `- Re: Fetch string from comment1sjack

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal