debug-package.scm 2.1 KB

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