Some questions on the Belt stdlib

Hi everyone :wave:

Can anyone point me to where the Belt stdlib is implemented in the compiler itself ? Is it a part of the compiler itself or written in ReScript ?

Thank you !

Belt is here: rescript-compiler/jscomp/others at master · rescript-lang/rescript-compiler · GitHub

It’s made up of several files, each containing a ‘top-level’ Belt module. They are tied together in the top-most belt.ml file which provides the entrypoint Belt module.

These and (as far as I’m aware) all other modules in the repo are in OCaml syntax.

2 Likes

Sidenote: All the stdlib / Belt modules will be converted to ReScript in the near future

7 Likes