| \ If you want check values then exclude comments, |
\ If you want check values then exclude comments, |
| \ but keep in mind that this can't be cross-compiled |
\ but keep in mind that this can't be cross-compiled |
| |
|
| INCLUDE look.fs |
\ INCLUDE look.fs |
| |
|
| \ Wordinfo is a tool that checks a nfa |
\ Wordinfo is a tool that checks a nfa |
| \ and finds out what wordtype we have |
\ and finds out what wordtype we have |
| \ the above words could be factored with create-does>, but this would |
\ the above words could be factored with create-does>, but this would |
| \ probably make this file incompatible with cross. |
\ probably make this file incompatible with cross. |
| |
|
| : prim? ( nfa -- flag ) |
[IFDEF] forthstart |
| name>int |
: xtprim? ( xt -- flag ) |
| forthstart u< ; |
forthstart u< ; |
| |
[ELSE] |
| |
: xtprim? ( xt -- flag ) |
| |
dup >body swap >code-address = ; |
| |
[THEN] |
| |
: prim? ( nfa -- flag ) |
| |
name>int xtprim? ; |
| |
|
| \ None nestable IDs: |
\ None nestable IDs: |
| |
|