Skip to content

Implementing NAME>INTERPRET #127

Answered by ruv
SirWumpus asked this question in Q&A
Discussion options

You must be logged in to vote

The word name>interpret is insufficiently specified in Forth-2012. An irony is that this word (along with name>compile and find-name) was supposed to replace find, since find is insufficiently specified, but it got into the same problem.

It is supposed that name>interpret returns the xt (execution token) of a word, the same xt that Tick returns for the word (or that find returns in interpretation state).

  • Hence, in the general case, to perform the interpretation semantics for a word, this xt should be executed in interpretation state — albeit the glossary entry does not specify this at the moment (therefor you can get an impression that you can execute this xt in compilation state as well…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by SirWumpus
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
implementation How to implement a Forth system
2 participants