Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed scribble bug #15 (Can't require a submodule in the same chunk with scribble/lp2) #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SuzanneSoy
Copy link
Contributor

@SuzanneSoy SuzanneSoy commented Jun 17, 2016

This fixes bug #15.

The problem was that when analyzing a chunk, scribble/lp tries to identify the require statements and automatically append them to a (require (for-label …)) statement. Submodules declared in the chunks are not available during the first expansion step.

Ideally, we would simply ignore all unknown modules, as I'm not 100% sure this is robust in all cases.

Also, it would be nice to check whether we're in the first expansion step or in the actual module, and include these require statements with an extra ".." in the second case.

I also cleaned up code by currying the #'racketblock vs #'RACKETBLOCK parameter for chunk and CHUNK instead of factoring the two macros with define-syntax-rule. This avoids a lot of (... ...) in the code.

@SuzanneSoy SuzanneSoy force-pushed the scribble-lp-fix-require-submod branch 2 times, most recently from ddb1842 to e1ff6f1 Compare June 17, 2016 14:28
…cketblock vs RACKETBLOCK parameter for chunk and CHUNK instead of calling define-syntax-rule twice.
@SuzanneSoy SuzanneSoy force-pushed the scribble-lp-fix-require-submod branch from e1ff6f1 to a3f8e6a Compare June 17, 2016 17:44
@SuzanneSoy SuzanneSoy changed the title Fixed scribble bug #15. Fixed scribble bug #15 (Can't require a submodule in the same chunk with scribble/lp2) Aug 4, 2016
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.

None yet

2 participants