| 2drop type ; |
2drop type ; |
| |
|
| : print-entry ( -- ) |
: print-entry ( -- ) |
| ." CASE I_" prim prim-c-name 2@ type ." :" ; |
." LABEL(" prim prim-c-name 2@ type ." ):" ; |
| |
|
| : output-c ( -- ) |
: output-c ( -- ) |
| print-entry ." /* " prim prim-name 2@ type ." ( " prim prim-stack-string 2@ type ." ) */" cr |
print-entry ." /* " prim prim-name 2@ type ." ( " prim prim-stack-string 2@ type ." ) */" cr |
| endif |
endif |
| ." }" cr ; |
." }" cr ; |
| |
|
| |
: output-superend ( -- ) |
| |
\ output flag specifying whether the current word ends a dynamic superinst |
| |
prim prim-c-code 2@ s" SET_IP" search nip nip |
| |
prim prim-c-code 2@ s" SUPER_END" search nip nip or 0<> |
| |
prim prim-c-code 2@ s" SUPER_CONTINUE" search nip nip 0= and |
| |
negate 0 .r ." , /* " prim prim-name 2@ type ." */" cr ; |
| |
|
| : gen-arg-parm { item -- } |
: gen-arg-parm { item -- } |
| item item-stack @ inst-stream = if |
item item-stack @ inst-stream = if |
| ." , " item item-type @ type-c-name 2@ type space |
." , " item item-type @ type-c-name 2@ type space |
| \ cr ; |
\ cr ; |
| |
|
| : output-label ( -- ) |
: output-label ( -- ) |
| ." (Label)&&I_" prim prim-c-name 2@ type ." ," cr ; |
." INST_ADDR(" prim prim-c-name 2@ type ." )," cr ; |
| |
|
| : output-alias ( -- ) |
: output-alias ( -- ) |
| ( primitive-number @ . ." alias " ) ." Primitive " prim prim-name 2@ type cr ; |
( primitive-number @ . ." alias " ) ." Primitive " prim prim-name 2@ type cr ; |
| name-line @ 0 .r |
name-line @ 0 .r |
| ." ,0" cr ; |
." ,0" cr ; |
| |
|
| |
: output-vi-tag ( -- ) |
| |
name-filename 2@ type #tab emit |
| |
prim prim-name 2@ type #tab emit |
| |
." /^" prim prim-name 2@ type ." *(/" cr ; |
| |
|
| [IFDEF] documentation |
[IFDEF] documentation |
| : register-doc ( -- ) |
: register-doc ( -- ) |
| prim prim-name 2@ documentation ['] create insert-wordlist |
prim prim-name 2@ documentation ['] create insert-wordlist |