A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::flow::tool Namespace Reference

Functions

int RunLsp (std::istream &in, std::ostream &out, std::vector< std::string > source_roots={}, CompilationLimits limits={})
 Serves Language Server Protocol requests over in and out.
 

Function Documentation

◆ RunLsp()

int a11::flow::tool::RunLsp ( std::istream &  in,
std::ostream &  out,
std::vector< std::string >  source_roots = {},
CompilationLimits  limits = {} 
)

Serves Language Server Protocol requests over in and out.

Converts UTF-16 positions to source byte offsets and tracks open documents. Returns 0 after shutdown/exit, or 1 if the input ends first.