github / semantic

Parsing, analyzing, and comparing source code across many languages
8.93k stars 453 forks source link

How do we install `semantic` more easily? #698

Open dylanirlbeck opened 1 year ago

dylanirlbeck commented 1 year ago

Hi all. I'm not seeing any installation instructions in the README. I do, however, see a Development section. Am I right to assume that we have to build from source in order to use the CLI? Or, is there another, easier way -- i.e. Homebrew -- through which I can get access to the CLI tool?

Thanks so much!

patrickt commented 1 year ago

Hi there 👋🏻 Thanks for your interest in this project. The short answer is that you currently have to compile this project from source. The longer answer, and the one that is probably most helpful for you is that semantic is currently in flux, as we’re both redesigning its data model and, in our production systems, focusing on stack graphs rather than abstract interpretation. If you have a particular use case in mind, I might be able to point you to a project that’s more active/suited for your uses; let me know.

dylanirlbeck commented 1 year ago

Hi @patrickt -- thanks for the quick response! That makes sense: I'm excited to read about stack graphs and how you all are implementing them.

My primary use case (and do correct me if semantic was never designed to do this) was to inspect the AST of code written in an arbitrary programming language, mostly for curiosity/learning. I've always thought about what an AST-based code review tool would look like as well, so I suppose another use case might be building that. Happy to hear about any tools besides semantic that you have in mind.

Gusabary commented 10 months ago

@dylanirlbeck maybe you can try this: https://github.com/tree-sitter/tree-sitter here is the playground: https://tree-sitter.github.io/tree-sitter/playground