debug-package.scm 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. ; Part of Scheme 48 1.9. See file COPYING for notices and license.
  2. ; Authors: Richard Kelsey, Jonathan Rees, Mike Sperber
  3. ; For debugging
  4. (define-structure vm-disassembler (export disassemble write-instruction)
  5. (open scheme
  6. struct
  7. enumerated ; enumerand->name
  8. vm-architecture
  9. bitwise ; arithmetic-shift
  10. signals) ; error
  11. (files (util disasm)))
  12. ; Independent byte-code compiler for testing (from Michael Sperber).
  13. (define-structure scan-test scan-interface
  14. (open scheme-level-2
  15. packages syntactic
  16. usual-macros ; for dealing with (usual-transforms ...)
  17. meta-types
  18. packages-internal
  19. simple-signals fluids tables util
  20. features ;force-output current-noise-port
  21. filenames) ;translate
  22. (files (bcomp scan)
  23. (bcomp undefined)))
  24. (define-structure expander-test expander-interface
  25. (open scheme-level-2
  26. syntactic packages scan-test meta-types reconstruction
  27. define-record-types
  28. util simple-signals tables fluids strong
  29. features) ; string-hash
  30. (files (opt expand)
  31. (opt sort)
  32. (opt flatten)))
  33. (define-structure compiler-test compiler-interface
  34. (open scheme-level-2 syntactic scan-test meta-types
  35. segments
  36. reconstruction
  37. packages
  38. packages-internal ;only for structure-package ?
  39. locations ;make-undefined-location
  40. architecture
  41. enumerated ;enumerand->name
  42. simple-signals tables util fluids
  43. features) ;force-output
  44. (files (bcomp comp)
  45. (bcomp cprim)
  46. (bcomp ctop)))
  47. (define-interface evaluation-test-interface
  48. (export test-eval
  49. test-load
  50. test-load-into
  51. test-eval-from-file
  52. test-eval-scanned-forms))
  53. (define-structure evaluation-test evaluation-test-interface
  54. (open scheme-level-2
  55. compiler-test
  56. packages ;package-uid
  57. environments ;package-for-load
  58. closures ;make-closure
  59. vm-exposure ;invoke-closure
  60. scan ;noting-undefined-variables
  61. i/o ;current-noise-port
  62. simple-signals fluids)
  63. (files (rts eval))
  64. (begin
  65. (define test-eval eval)
  66. (define test-load load)
  67. (define test-load-into load-into)
  68. (define test-eval-from-file eval-from-file)
  69. (define test-eval-scanned-forms eval-scanned-forms)))