generated from pre-srfi/template
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Demo of how complex the complex format is #7
Comments
By replacing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To gauge the complexity of supporting
include
andcond-expand
, I wrote a parser using R7RS. It's incomplex-format.scm
in theexperimental
directory.chibi-scheme complex-format.scm package1.scm
parses the self-contained file.chibi-scheme complex-format.scm package2.scm
parses the file that uses(include "...")
.Both should result in the same S-expression. (The program writes the result, preceded by the intermediate steps of the expansion.) The expander is less than 100 lines of code; the most complex part is the cond-expand boolean expression evaluator which is self-contained so it could be made into a more generally useful library routine.
The text was updated successfully, but these errors were encountered: