News for hackers. Stuff that matters.
Re:Show HN: Codemap – Codebase Visualizer for JavaScript, Ty... by ru6xul6 on Saturday August 22, 2020 @05:59AM (#24243039)
Glad you like it! It uses a language-specific parser to generate function dependencies data, e.g. list of function calls, which are then consumed and visualized by shared UI components that renders the graph. To build language parsers, I started with Language Server Protocol (LSP) [1], but soon realized that some LSP libraries are outdated and I should go deeper to the core language parser, e.g. using Typescript tsserver for JS/TS code. To support a new language, I'll need to integrate a good language parser for that language, generate function dependencies, then the UI and graph rendering will take care of the rest.

[1] https://microsoft.github.io/language-server-protocol/

There are no comments on this comment yet.