Git Product home page Git Product logo

slang's Introduction

slang - SystemVerilog Language Services

Build Status codecov CodeFactor Codacy Badge License: MIT Join the chat at https://gitter.im/MikePopoloski/slang

Parser and compiler library for SystemVerilog.

Still under heavy construction!

Goals

  • Fully parse and analyze all SystemVerilog features.
  • Be robust about compilation, no matter how broken the source text. This makes the compiler usable in editor highlighting and completion scenarios, where the code is likely to be pretty broken.
  • The parse tree should round trip back to the original source, making it easy to write refactoring and code generation tools.
  • Provide great error messages, ala clang.
  • Be fast and robust in the face of production-scale projects.

Try It Out

Experiment with parsing, type checking, and error detection live on the web (this tool is inspired by Matt Godbolt's excellent Compiler Explorer). It's still pretty rough but useful for exploring the interactive behavior of the toolchain.

Build Instructions

Dependencies

Compilation

CMake is used for project generation and Conan is used for dependency management. All external packages will be pulled down, configured, and built automatically by Conan as part of invoking CMake. CMake supports many generator backends so use the one that is most comfortable for you; some recommended options are as follows:

Visual Studio

The recommended method on Windows is to open the slang root folder in Visual Studio and press build. The IDE handles all of the CMake interaction.

Ninja

Ninja is the recommended method for command line building (on any platform):

mkdir build && cd build
cmake -GNinja ..
ninja
Make

If you're building on Linux and don't want the additional Ninja dependency, you can build with make, which is the default generator for CMake on Linux:

mkdir build && cd build
cmake ..
make -j 8

Running tests

From the build directory:

bin/unittests

slang's People

Contributors

baranowski avatar denisrr avatar drsam94 avatar evanbryantmiller avatar gitter-badger avatar kuree avatar mikepopoloski avatar oddball avatar pleroux0 avatar tgorochowik avatar toddstrader avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.