From 3712c610fbb2d64182e57322414c9e40cc4c1a41 Mon Sep 17 00:00:00 2001 From: ketmar Date: Sun, 15 Nov 2020 08:29:58 +0000 Subject: [PATCH] URFORTH.me updates FossilOrigin-Name: bc741404f05f592dc7f35d0756bbfd97766a5fe02fead284b74d3e54f41e3158 --- URFORTH.me | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/URFORTH.me b/URFORTH.me index afcd07c..6bd75cb 100644 --- a/URFORTH.me +++ b/URFORTH.me @@ -81,13 +81,18 @@ some advanced UrForth features, in no particular order: * there is IFNOT in addition to IF. also, there are +IF and -IF, to check for positive and negative numbers respectively. zero is neither negative, nor - positive. + positive. to include zero, use "+0IF" and "-0IF". + +* the above positive/negative checks can be used with loops too ("+WHILE", and such). * segfault handler will show you stack dump and backtrace. * vocabularies supports public and hidden words. it is possible to create "nested" vocabulary, which will see all parent's words (including hidden ones). +* hidden words in "current" vocabulary are always visible. to access hidden words in + other vocabularies, use "vocname:wordname" syntax. + * multiline comments: normal (* ... *), and nested (( ... )) nested multiline comment allows other nested comments @@ -160,6 +165,7 @@ some advanced UrForth features, in no particular order: most of initialisation and other chained things are implemented with it. also, there are interpreter and "to" scattered colon hooks. see "samples/scolon.f" for example code. + scattered colons are great, you *WILL* miss them in other Forth systems! ;-) * "REPLACE" word can be used to perform system-wide word replacement: replace oldword newword -- 2.11.4.GIT