I started looking at the JSON-RPC code before the holidays, I will put what I have in a repository somewhere... it's not a lot of code, as the spec is pretty simple. Note that this won't be helpful for DAP, as it doesn't use JSON-RPC (though LSP does).
I think (but am not 100% sure), that the definitive specifications for DAP is expressed via a JSON schema... my guess is that a TypeScript converter would probably be a good bit of work, unless the changes required would be very minimal, though I haven't really thought too much about it. TypeScript is certainly what Microsoft uses for a lot of their tooling, but I'm not sure if that code is considered the original specification or just a reference implementation.
I will try to dig out the Java parser code. I did spend a day or two looking at it, but there were two problems: 1) there is some dependency on Eclipse editor classes and b) an older version of the parser and lexer libraries is fairly old. I tried to tackle both of the problems at once and it ended up being a bit of a mess.
There's a LR parser module in Pike, but I haven't looked at whether it could be used with a version of the pike language syntax to generate the kinds of data we need.
January 2, 2019 12:04 PM, "Mateusz Krawczuk" <
krawczukmat@gmail.com> wrote:
I've started a separate thread for QuickType support in Pike. But now I'm thinking perhaps it would be even better to have some kind of TypeScript -> Pike class transformer, since both DAP and LSP JSON-RPC message specifications are in TypeScript. Does anyone know any tools that might be able to do it?
Bill, can you please share the Pike language parser plugin for Eclipse, along with the JSON-RPC implementation you mentioned? Might turn out handy.