semantic is a Haskell library and command line tool for parsing, analyzing, and comparing source code. Run semantic --help for complete list of up-to-date options. Semantic uses tree-sitter to generate parse trees, but layers in a more generalized notion of syntax terms across all supported programming languages. We'll see why this is important when we get to diffs and program analysis, but for now let's just inspect some output. It helps to have a simple program to parse. Symbols are named identifiers driven by the ASTs. This is the format that github.com uses to generate code navigation information allowing c-tags style lookup of symbolic names for fast, incremental navigation in all the supported languages. The incremental part is important because files change often so we want to be able to parse just what's changed and not have to analyze the entire project again.

Features

  • Generates per-language Haskell syntax types based on tree-sitter grammar definitions
  • Reads blobs from a filesystem or provided via a protocol buffer request
  • Returns blobs or performs analysis
  • Renders output in one of many supported formats
  • semantic requires at least GHC 8.10.1 and Cabal 3.0.
  • You can also use the Bazel build system for development

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Semantic

Semantic Web Site

Other Useful Business Software
PRTG Catches Network Issues Before They Cause Downtime Icon
PRTG Catches Network Issues Before They Cause Downtime

Threshold-based alerts flag problems early, so your team can act before users notice, not after.

Reactive troubleshooting usually means hearing about a problem from frustrated users, not your monitoring tool. PRTG sets threshold-based alerts across devices, servers and applications, notifying your team by email, SMS or push the moment a metric crosses a set limit. That means catching a failing disk or overloaded server before it becomes an outage and getting time back from firefighting. Start a free trial and set your first alerts today.
Download 30-Day Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Semantic!

Additional Project Details

Programming Language

Haskell

Related Categories

Haskell Source Code Analysis Tool, Haskell Code Review Software, Haskell Command Line Tools

Registered

2021-07-13