zeroflag / punyforth

Forth inspired programming language for the ESP8266
Other
410 stars 43 forks source link

Need "words" word #6

Closed ghost closed 7 years ago

ghost commented 7 years ago

It would be nice if you could add a "words" word so that we could see all of the words currently defined in the dictionary.

zeroflag commented 7 years ago

Thanks for your suggestion. What would the "words" word do? Just print out the word names from the dictionary? There is a "help" word that does this.

edit: it is called help because I wanted to reserve "words" for something that returns an iterator like construct

ghost commented 7 years ago

That works perfectly so I'll close this issue. Thanks for the fast response even on Christmas day

profburke commented 7 years ago

You might want to mention the "help" word in the readme. Many forthwrights will expect "words" and some number of them will be as dense as me and not think to try "help" :)

zeroflag commented 7 years ago

Ok, I added it to the readme.