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

Get belt on opam #66

Open
bsansouci opened this issue Aug 2, 2018 · 0 comments
Open

Get belt on opam #66

bsansouci opened this issue Aug 2, 2018 · 0 comments

Comments

@bsansouci
Copy link
Owner

@thangngoc89 had asked me if we could get belt on opam.

Belt depends on 3 things:

  • a couple js files
  • belt_ppx (which brings bs.deriving abstract support for native compilation)
  • bspp (which is the preprocessor for conditional compilation)

With all the right files in a folder, and the preprocessors and ppx, you should be able to run the pp and ppx, generate ML code, then use whatever global ocaml is available and compile.
You need to generate ML ahead of time because the ppx returns 4.02.3 AST right now and we probably don't want to be stuck with that.

All the code is inside belt_byte, more specifically the makefile which will copy files from the JS version of belt (others).

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

No branches or pull requests

1 participant