rescript-lang / syntax

ReScript's syntax as a standalone repo.
MIT License
254 stars 38 forks source link

add API for parsing impl/interface from a raw string #643

Closed zth closed 2 years ago

zth commented 2 years ago

This adds an API for parsing impl/interface from a raw string. Main use case right now is in https://github.com/rescript-lang/rescript-vscode/pull/547 where I need to parse a raw string and don't want to have to put the contents into a temp file just to parse it.

Tried adding it to parseEngine first but that required me to add implementations for re/ml, which felt unecessary.

zth commented 2 years ago

The failing Windows test seem to be about a cygwin mirror that times out. Merging anyway since that's expected to resolve itself soon.