Closed jcsherin closed 1 month ago
The parseRE(code: string): astAndComments throws an error when the code contains one or more line comments.
parseRE(code: string): astAndComments
The usage of the JS API is documented here.
const refmt = require('reason'); const ast = refmt.parseRE('let x = 1; // line comment'); Thrown: { message: '2864: <syntax error>', location: { startLine: 1, startLineStartChar: 12, endLine: 1, endLineEndChar: 13 } }
The reason package version is ^3.3.4.
reason
^3.3.4
this doesn't throw an error anymore, but it takes substantially longer to compile for some reason
ends up being the same issue as https://github.com/melange-re/melange/issues/808
The
parseRE(code: string): astAndComments
throws an error when the code contains one or more line comments.The usage of the JS API is documented here.
The
reason
package version is^3.3.4
.