PageRenderTime 34ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/package/list.forth

https://github.com/crcx/retroforth
Forth | 52 lines | 35 code | 17 blank | 0 comment | 1 complexity | c306961ab6d586241c5d5c0e9c189e35 MD5 | raw file
Possible License(s): 0BSD, MIT
  1. # Custom Extensions
  2. This is a system for allowing you to easily add your own
  3. extensions to RETRO on Unix systems.
  4. ~~~
  5. [ script:current-file s:keep [ &d:add-header #2 + call ] dip
  6. d:last d:source store ] &d:add-header set-hook
  7. ~~~
  8. There are two options:
  9. ## Manual Additions
  10. Add files to include to the code block below. Use a form
  11. like:
  12. 'filename include
  13. You can either put the files (or links to them) into this
  14. directory or use full path names to the files. You can
  15. also use any Retro code directly.
  16. ~~~
  17. 'dict-words-listing.forth include
  18. ~~~
  19. ## Automatic Extensions
  20. This does not require manual editing of this file. To use
  21. this:
  22. - copy (or symlink) the extensions into the `extensions` subdirectory
  23. - run `make update-extensions`
  24. - run `make`
  25. This will build RETRO, generate a new `load-extensions.retro` and
  26. then rebuild, including the extensions.
  27. ~~~
  28. 'load-extensions.retro include
  29. ~~~
  30. ## Final Bits
  31. Save the image with anything loaded here added in. The
  32. `retro` binary will be rebuilt using the extended image.
  33. ~~~
  34. '../rre.image image:save
  35. ~~~