| \ regarding problem 1 above: It would be better (for over) to implement |
\ regarding problem 1 above: It would be better (for over) to implement |
| \ the alternative |
\ the alternative |
| |
|
| |
warnings off |
| |
|
| include gray.fs |
include gray.fs |
| include search-order.fs |
include search-order.fs |
| |
|
| |
|
| (( (( primitive {{ printprim }} )) ** eof )) |
(( (( primitive {{ printprim }} )) ** eof )) |
| parser primitives2something |
parser primitives2something |
| |
warnings @ [IF] |
| .( parser generated ok ) cr |
.( parser generated ok ) cr |
| |
[THEN] |
| |
|
| : primfilter ( file-id xt -- ) |
: primfilter ( file-id xt -- ) |
| \ fileid is for the input file, xt ( -- ) is for the output word |
\ fileid is for the input file, xt ( -- ) is for the output word |
| if |
if |
| ." cannot open file" cr abort |
." cannot open file" cr abort |
| endif |
endif |
| ." ------------ CUT HERE -------------" cr |
warnings @ if |
| |
." ------------ CUT HERE -------------" cr endif |
| r> primfilter ; |
r> primfilter ; |