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

Update documentation.frt #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions documentation.frt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,67 @@ Drop the topmost element of the stack
( a b -- b a )
Swap two topmost elements of the stack
" doc-word

' info g"
( word_addr -- )
Outputs XT by word address, then " : " string and then ... also outputs XT (WAT???). End of line after
" doc-word


' struct g"
( -- 0 )
(!!! I think, I understood it wrong, but I'm over it ;( !!!)
Start defining structure
Actually just puts 0 on the stack

To refer to any field write like: "structname - fieldname"
" doc-word


' field g"
(a -- )
a - value of field
Takes the following text as a name of field
To put the summary of previous values of fields (????) on the stack, just write its name

" doc-word


' end-struct g"
( -- )
Takes the following text as a name of field
To put the summary of values of all fields on the stack, just write its name
" doc-word


' add-constant g"
??? (No such colon-word)
" doc-word


' constant g"
(a -- )
a - value of constant
Takes the following text as a name
To put the value of constant on the stack, just write its name
" doc-word


' global g"
??????? why? what? help me!
( -- )
Value of constant is 8
Takes the following text as a name
To put the value of constant on the stack, just write its name
" doc-word


' word-create g"
??? (No such colon-word)
" doc-word


' include g"
( -- )
Executes everything read from file by following path name
" doc-word