Skip to content

Comments

Initial support for R7RS environment#15

Merged
ufo5260987423 merged 4 commits intoMoganLab:mainfrom
VSteveHL:main
Jul 1, 2025
Merged

Initial support for R7RS environment#15
ufo5260987423 merged 4 commits intoMoganLab:mainfrom
VSteveHL:main

Conversation

@VSteveHL
Copy link
Collaborator

@VSteveHL VSteveHL commented Jul 1, 2025

  • Enhanced analysis/workspace.sls by modifying the init-workspace function to include a top-environment parameter, enabling differentiation between R6RS and R7RS environments.
  • Added R7RS test code under the tests/r7rs/ directory.
  • Introduced analysis/package-manager/txt-filter.sls as a temporary solution to filter .txt files. This is necessary for R7RS-related tests, which require R7RS code placed in the tests/r7rs/ directory and renamed to .scm.txt.
  • Created tests/analysis/test-r7rs-workspace.sps, mimicking tests/analysis/test-workspace.sps, to verify that the workspace functions correctly when top-environment is set to R7RS.

VSteveHL added 2 commits June 30, 2025 20:20
- Modified `analysis/workspace.sls` to enhance the `init-workspace` function by adding a `top-environment` parameter, enabling differentiation between R6RS and R7RS environments.
- Introduced R7RS test code, placed under the `tests/r7rs/` directory.
- Added `analysis/package-manager/txt-filter.sls` as a temporary solution. This file uses a straightforward approach to filter all `.txt` files. Since R7RS-related tests require R7RS code, the relevant code has been placed in the `tests/r7rs/` directory and renamed to `.scm.txt`.
- Added `tests/analysis/test-r7rs-workspace.sps`, which mimics `tests/analysis/test-workspace.sps`. This file includes a simple test to verify that the workspace functions correctly when `top-environment` is set to R7RS.
- Updated `analysis/workspace.sls` to ensure the `init-workspace` function properly handles the 4-parameter case in its `case-lambda`.
- Commented out several `pretty-print` statements previously used for debugging.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this test should be done in test-workspace.sps?

@ufo5260987423
Copy link
Collaborator

the files in test/r7rs should be moved to test/resources/r7rs

- Moved the tests from `tests/analysis/test-r7rs-workspace.sps` into `tests/analysis/test-workspace.sps` and deleted the `test-r7rs-workspace.sps` file.
- Relocated files from `test/r7rs` to `test/resources/r7rs` directory for better organization.
@VSteveHL
Copy link
Collaborator Author

VSteveHL commented Jul 1, 2025

Thank you for your feedback and guidance. I have made the following changes:

  • Moved the tests from tests/analysis/test-r7rs-workspace.sps to tests/analysis/test-workspace.sps, and deleted the tests/analysis/test-r7rs-workspace.sps file.
  • Moved the files in test/r7rs to the test/resources/r7rs directory.

@VSteveHL
Copy link
Collaborator Author

VSteveHL commented Jul 1, 2025

Adjusted some indentation in the init-workspace function in analysis/workspace.sls.

@ufo5260987423 ufo5260987423 merged commit 7f6ef44 into MoganLab:main Jul 1, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants