| |
|
| \ Ideas: Level should be a stack |
\ Ideas: Level should be a stack |
| |
|
| |
require termsize.fs |
| |
|
| decimal |
decimal |
| |
|
| \ Screen format words 16may93jaw |
\ Screen format words 16may93jaw |
| XPos @ Level @ = ?Exit |
XPos @ Level @ = ?Exit |
| C-Formated @ IF |
C-Formated @ IF |
| C-Output @ |
C-Output @ |
| IF C-Clearline @ IF 80 XPos @ - spaces |
IF C-Clearline @ IF cols XPos @ - spaces |
| ELSE cr THEN |
ELSE cr THEN |
| 1 YPos +! 0 XPos ! |
1 YPos +! 0 XPos ! |
| Level @ spaces |
Level @ spaces |
| |
|
| : warp? ( len -- len ) |
: warp? ( len -- len ) |
| nlflag @ IF (nl) nlflag off THEN |
nlflag @ IF (nl) nlflag off THEN |
| XPos @ over + 79 u> IF (nl) THEN ; |
XPos @ over + cols u>= IF (nl) THEN ; |
| |
|
| : ctype ( adr len -- ) |
: ctype ( adr len -- ) |
| warp? dup XPos +! C-Output @ IF type ELSE 2drop THEN ; |
warp? dup XPos +! C-Output @ IF type ELSE 2drop THEN ; |
| : ahead? ( n -- flag ) 0> ; |
: ahead? ( n -- flag ) 0> ; |
| |
|
| : c-(compile) |
: c-(compile) |
| Display? IF s" POSTPONE " Com# .string |
Display? |
| |
IF |
| |
s" POSTPONE " Com# .string |
| dup @ look 0= ABORT" SEE: No valid XT" |
dup @ look 0= ABORT" SEE: No valid XT" |
| cell+ count $1F and 0 .string bl cemit |
name>string 0 .string bl cemit |
| THEN |
THEN |
| cell+ ; |
cell+ ; |
| |
|
| DisplayMode c-pass ! makepass ; |
DisplayMode c-pass ! makepass ; |
| : doali here @ .name ." Alias " .name cr |
: doali here @ .name ." Alias " .name cr |
| here @ dosee ; |
here @ dosee ; |
| : docol S" : " Com# .string |
: docol |
| dup cell+ count $1F and 2 pick wordinfo .string bl cemit bl cemit |
S" : " Com# .string |
| |
dup name>string 2 pick wordinfo .string bl cemit bl cemit |
| ( XPos @ ) 2 Level ! |
( XPos @ ) 2 Level ! |
| name> >body |
name> >body |
| C-Pass @ DebugMode = IF ScanMode c-pass ! EXIT THEN |
C-Pass @ DebugMode = |
| |
IF |
| |
ScanMode c-pass ! EXIT |
| |
THEN |
| ScanMode c-pass ! dup makepass |
ScanMode c-pass ! dup makepass |
| DisplayMode c-pass ! makepass ; |
DisplayMode c-pass ! makepass ; |
| |
|