Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete word list with usage #47

Open
hinsech475 opened this issue Feb 18, 2019 · 2 comments
Open

Complete word list with usage #47

hinsech475 opened this issue Feb 18, 2019 · 2 comments

Comments

@hinsech475
Copy link

Hi to your team. I enjoy using Forth as a hobby on my Wemos D1. But PunyForth is giving me a hard time because I cannot find a complete list of all words and their usage. The word help is the only way I found to see all defined words, but without a description of the usage. Could you please tell me where I could find documentation describing all PunyForth words and their usage. I appreciate your collaboration.

@zeroflag
Copy link
Owner

Hi @hinsech475,

Since stack effect and other comments are not stored in the dictionary there is no way to access them during runtime.

You can use the word help to see all available words in the dictionary and use the decompiler to see the decompiled source code of a given word.

DECOMP load \ first load the decompiler

(stack) decompile: \
16r00021C30:  <entercol>
16r00021C34:  key        <-                                      
16r00021C38:  crlf?        |                                     
16r00021C3C:  branch0    ->                                      
16r00021C40:  -12                                                
16r00021C44:  <exit>                                             
(stack)

This decompiles the word \. This might help but if you're interested in the real source code and stack effects comments the only way to access those is to find the word in the github repository.

@hinsech475
Copy link
Author

hinsech475 commented Feb 19, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants