Return the parser's warnings instead of printing them
The parser printed its one warning, for the deprecated (. ...) syntax, through the compiler's warning reporting when it finished. It now keeps its warnings as values of a new type, Res_warning.t, and returns them with the parse result. The compiler reports them as before, right after parsing: Syntax_driver.report_warnings turns them into Warnings.Deprecated, called by bsc, res_parser, the playground and Res_multi_printer. Editor analysis, rescript-tools and the snippets the compiler parses for error hints no longer print the warning. A unit test checks the returned warnings.