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

Implement MARKER #5

Open
ikysil opened this issue Apr 21, 2016 · 2 comments
Open

Implement MARKER #5

ikysil opened this issue Apr 21, 2016 · 2 comments

Comments

@ikysil
Copy link
Owner

ikysil commented Apr 21, 2016

https://forth-standard.org/standard/core/MARKER

MARKER
( "name" -- )
Skip leading space delimiters. Parse name delimited by a space. Create a definition for name with the execution semantics defined below.

name Execution:
( -- )

Restore all dictionary allocation and search order pointers to the state they had just prior to the definition of name. Remove the definition of name and all subsequent definitions. Restoration of any structures still existing that could refer to deleted definitions or deallocated data space is not necessarily provided. No other contextual information such as numeric base is affected.

Open points:

  • restoring values of DEFERs
    • idea - redefine DEFER or IS
@ikysil
Copy link
Owner Author

ikysil commented Apr 21, 2016

  • Trim list of wordlists
  • Trim each wordlist
  • Restore search XT for each wordlist (is it really needed?)
  • Chain for markers, MARKER A executes actions of MARKER B if B was defined later
  • Restore CONTEXT
  • Restore CURRENT
  • DP
  • Restore user area pointer

@ikysil
Copy link
Owner Author

ikysil commented Apr 23, 2016

  • Restore FORTH-RECOGNIZER

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

1 participant