Multilspy is a library that simplifies the use of language servers for static analysis of code. Language servers are tools that provide useful information about source code, such as code completion, symbol definition, references, etc. Multilspy abstracts the setup and communication with language servers, and exposes a common interface for different languages. Multilspy currently supports Java, Rust, C#, and Python, and can be easily extended to other languages. Multilspy is part of the monitors4codegen project, which introduces Monitor-Guided Decoding (MGD) for code generation using Language Models. MGD uses static analysis to guide the decoding of LMs, to generate code following certain properties, such as type-correctness, argument number, method order, etc. MGD can improve the compilation rate and ground-truth match of code generated by LMs at all scales.
Show HN: Multilspy – A library to easily use language servers to analyze code | Heykuki News