How does ReScript parse the syntax?

Hi all. I am watching Principle of Programming Languages series on youtube. I would like to see how is implemented. But I am not able to figure out the starting point of the program where it takes a file and returns an AST.

I cloned this syntax repo. How can I run this example?


Not sure what you mean exactly, but this is the starting point of the rescript parser CLI:

Here is the relevant entry in the Makefile:

The nice thing about rescript parser development is that you only need to install opam and the 4.06.1 switch, as stated in the README.

1 Like