https://github.com/mununki/rescript-macro-poc
PoC of native macro system for ReScript
https://github.com/mununki/rescript-macro-poc
Last synced: 6 days ago
JSON representation
PoC of native macro system for ReScript
- Host: GitHub
- URL: https://github.com/mununki/rescript-macro-poc
- Owner: mununki
- Created: 2026-04-09T08:31:08.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2026-04-09T14:12:21.000Z (2 months ago)
- Last Synced: 2026-04-09T16:13:55.846Z (2 months ago)
- Language: ReScript
- Size: 12.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rescript-macro-poc
Small standalone POC project for exercising the native macro implementation in the sibling `../rescript` checkout.
## Assumptions
- The compiler repo lives at `/Users/mununki/github/mununki/rescript`
- That repo has already been built at least once (`make`)
## Local Setup
If you want to test this locally against your own checkout:
1. Clone `https://github.com/mununki/rescript`
2. Build that checkout to branch `poc-macro` at least once with `make`
3. Update the `link:` paths in [package.json](/Users/mununki/github/mununki/rescript-macro-poc/package.json) so they point at your local `rescript` checkout
4. Run `pnpm install`
For example, these dependencies may need to be adjusted:
- `rescript`
- `@rescript/runtime`
- `ppxlib_res`
## Commands
```sh
pnpm install
pnpm build
pnpm test
```
The project uses local `link:` dependencies for:
- `ppxlib_res`
- `@rescript/runtime`
- `rescript`
That keeps `node_modules/rescript` pointed at the sibling checkout while letting the POC behave like a small standalone project.