I'm sure you could provide a lot of that to your friend, but when in doubt, you
could try:
Factor is a concatenative, stack-based programming language with high-level
features including dynamic types, extensible syntax, macros, and garbage
collection. It has a full-featured library, supports m
CHAR: space
Is also
CHAR: \s
> On Feb 22, 2016, at 6:40 AM, Alexander Ilin wrote:
>
> Hello!
>
> Thanks, John!
>
> You did not answer where the list of names comes from within Factor, but at
> least I can google for the names I need, knowing they are in the Unicode
> standard. Here's
Hello!
I recently told a friend of mine about Factor and how I'm studying it and
writing little scripts in it. He asked me the usual questions, like, "why not
Python" and "what's the main Factor strengths".
While I like Factor aesthetically, for its core simplicity, it got me
wondering, if
22.02.2016, 17:40, "Jon Harper" :
> You can see from the definition that is uses the name>char-hook, which
> then uses the name>char word to lookup names, which in the end reads
> and caches the basis/unicode/data/UnicodeData.txt file.
Great! That explains why searching for "exclamation-mark" fa
Hello!
Thanks, John!
You did not answer where the list of names comes from within Factor, but at
least I can google for the names I need, knowing they are in the Unicode
standard. Here's the resulting piece of code I've been working on:
: filter-text ( text-length -- string )
read
You can see from the definition that is uses the name>char-hook, which
then uses the name>char word to lookup names, which in the end reads
and caches the basis/unicode/data/UnicodeData.txt file.
Jon
On Mon, Feb 22, 2016 at 3:22 PM, John Benediktsson wrote:
> CHAR: works with all named Unicode c
CHAR: works with all named Unicode code points. In the listener use tab
completion to see, for example:
CHAR: ex
Where is press the tab key for tab completion.
> On Feb 22, 2016, at 6:07 AM, Alexander Ilin wrote:
>
> Hello, Jon!
>
> Thank you for the reply!
>
> I've looked through th
Hello, Jon!
Thank you for the reply!
I've looked through the documentation you suggested, and that's exactly what
I need.
I have a follow-up question regarding CHAR:. In the documentation there is a
line in the Examples section:
CHAR: exclamation-mark
It works. However I can't seem
Hi,
The exact answer would be
http://docs.factorcode.org/content/article-literals.html , for
example:
CONSTANT: CR-char-code 13
CONSTANT: LF-char-code 10
{ 13 13 10 10 } ${ CR-char-code } ${ LF-char-code } replace
However, in this case you can also use the "CHAR:" parsing word
{ 13 13 10 10 } { C
Hello!
The following code works the way I want it to:
{ 13 13 10 10 } { 13 } { 10 } replace
-> { 10 10 10 10 }
But when I tried to use named constants, it no longer works:
CONSTANT: CR-char-code 13
CONSTANT: LF-char-code 10
{ 13 13 10 10 } { CR-char-code } { LF-char-code } replace
-> { 13 1
10 matches
Mail list logo