18.8 Preprocessor libraries. 4tH 4tH Forth compiler
Publicitate
Publicitate
CHAPTER 18. PREPROCESSOR MANUAL
18.8
Preprocessor libraries
368
This table list all libraries, the user words they provide, their field of application and the registers they use. It is not recommended to use any internal words defined in the library nor to define any words starting with an underscore. Some libraries contain words that are intended to be used inside other macros, others provide new keywords you can use in your programs. Note that not all libraries can be combined. Refer to the source for details.
Some libraries clobber one or more registers. If any of these registers contain meaningful values when you use the library, these values will be overwritten. Save them on the stack before using any of these words or refrain from using these registers yourself.
A
PPLICA
-
TION
Program
Program
R
EGISTERS
U
SED
–
–
L
IBRARY closures.4pp
ansforth.4pp
comus.4pp
double.4pp
float.4pp
foos.4pp
rangext.4pp
ifdef.4pp
sbslquot.4pp
yield.4pp
interprt.4pp
standard.4pp
P
ROVIDES
:: vars end-vars var: this { } set sizeof {: ;} action-of synonym begin-structure end-structure case of endof endcase
+to d% 2variable 2constant f% fvariable ffield: fconstant derived? :: type@ typeof parent@ kindof parentof sizeof class extends end-class virtual: method: end-extends { } this {}
:virtual :default :method => virtual ;method <- default static new instance private{ overrides le ge lt gt
@ifdef @ifndef @then s\" yield grab
[ ]
@swap @rot @max @min @abs
Program
Program
Program
Program
Program
Program
Program
Program
Macro
Macro
–
–
–
–
–
–
–
–
–
@swap: 1;
@rot: 1, 2
Descarcă
Publicitate