Closed kogai closed 6 years ago
This looks great!! Sorry I haven't had the time to review it, but I can get to it this weekend 😄
Rather than doing the error handling + printing in Reason, I think it would be better to return a diagnostic object from compile
looking like:
type diagnostic = {.
"source": string,
"line": int,
"col": int
};
and then make compile
return:
(string, string, array(diagnostic))
and then the JS code can handle printing and displaying the error.
What do you think?
Sounds great :smile: , let me modify interface :+1:
Implement pretty-printer of parser-error
Input
Type definition which includes invalid syntax
Output
PR Checklist
refmt
npm test
and updated snapshots