| www.delorie.com/gnu/docs/gforth/gforth_123.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
These words are usually used in interpret state; typically to control which parts of a source file are processed by the text interpreter. There are only a few ANS Forth Standard words, but Gforth supplements these with a rich set of immediate control structure words to compensate for the fact that the non-immediate versions can only be used in compile state (see section 5.8 Control Structures). Typical usages:
FALSE Constant HAVE-ASSEMBLER . . HAVE-ASSEMBLER [IF] : ASSEMBLER-FEATURE ... ; [ENDIF] . . : SEE ... \ general-purpose SEE code [ HAVE-ASSEMBLER [IF] ] ... \ assembler-specific SEE code [ [ENDIF] ] ; |
doc-[IF] doc-[ELSE] doc-[THEN] doc-[ENDIF]
doc-[IFDEF] doc-[IFUNDEF]
doc-[?DO] doc-[DO] doc-[FOR] doc-[LOOP] doc-[+LOOP] doc-[NEXT]
doc-[BEGIN] doc-[UNTIL] doc-[AGAIN] doc-[WHILE] doc-[REPEAT]
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |