Printing jisp code back after macroexpand
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 132
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
There needs to be a way to return jisp code after parsing and expanding all macros, but before compiling. This must be available as a compiler option, and in the REPL.
This requires implementing jisp printing and beautification. Blindly printing the code back, as a single line, should be trivial. Indenting should also be simple: in the simplest form, it’s 2 extra spaces per each level of nesting. Not sure how to decide where to put linebreaks. ToDo figure it out and implement.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the compiler option handling and REPL entry points, then trace the stage after macro expansion and before compilation. Done means expanded jisp can be printed and beautified through the compiler option and in the REPL, with a defined approach to indentation and line breaks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli, compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100