module style 3: Standalone change on top of the module resolver pr that introduces the needed changes to read module style inputs, but not tiered constant generation - #332
Merged
Conversation
…hich likely should be fixed, one which depends on stable constants which should be delayed)
This reverts commit 7bab245.
…ere's an internal error that keeps the default dialect from existing
…20260202-better-test-result
…pe in recurse_dependencies
…odule style output since it writes its own hex files
…a real program (although running it through doesn't harm anything)
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
aqk
approved these changes
Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Note
Medium Risk
Touches core compilation/preprocessing flows and changes compiler return types, with new on-disk artifact generation for modules; regressions could affect compilation outputs and dependency tracking across many call sites.
Overview
Adds module-style chialisp compilation alongside existing program compilation. The compiler/frontend now detect module inputs, parse
export/importforms, build a dependency graph to identify standalone exported constants, and emit aCompilerOutput::Modulecontaining per-export components plus generated*_hashvalues.Extends the preprocessor to support
import-based module resolution (including relative module names),compile-fileembedding (IncludeProcessType::Compiled), and richer include tracking;CompilerOptsgains file I/O hooks (set_filename,write_new_file,get_file_mod_date) and compilation APIs now returnCompilerOutputinstead of rawSExp, with call sites updated accordingly.Adds a large set of new
resources/tests/module/*fixtures and stdlib.clincmodules to exercise module imports/exports and hashing behavior, and updatesrun_coverage.pyto pass through extracargo testargs.Reviewed by Cursor Bugbot for commit bc26e74. Bugbot is set up for automated code reviews on this repo. Configure here.