All Projects → MikePopoloski → Slang

MikePopoloski / Slang

Licence: mit
SystemVerilog compiler and language services

Projects that are alternatives of or similar to Slang

Poprc
A Compiler for the Popr Language
Stars: ✭ 170 (+17.24%)
Mutual labels:  compiler, verilog
Snapdragon
snapdragon is an extremely pluggable, powerful and easy-to-use parser-renderer factory.
Stars: ✭ 180 (+24.14%)
Mutual labels:  compiler, parse
Reduceron
FPGA Haskell machine with game changing performance. Reduceron is Matthew Naylor, Colin Runciman and Jason Reich's high performance FPGA softcore for running lazy functional programs, including hardware garbage collection. Reduceron has been implemented on various FPGAs with clock frequency ranging from 60 to 150 MHz depending on the FPGA. A high degree of parallelism allows Reduceron to implement graph evaluation very efficiently. This fork aims to continue development on this, with a view to practical applications. Comments, questions, etc are welcome.
Stars: ✭ 308 (+112.41%)
Mutual labels:  compiler, verilog
Olefile
olefile is a Python package to parse, read and write Microsoft OLE2 files (also called Structured Storage, Compound File Binary Format or Compound Document File Format), such as Microsoft Office 97-2003 documents, vbaProject.bin in MS Office 2007+ files, Image Composer and FlashPix files, Outlook messages, StickyNotes, several Microscopy file formats, McAfee antivirus quarantine files, etc.
Stars: ✭ 142 (-2.07%)
Mutual labels:  parse
Sim C
A dynamically typed high-level front end for C
Stars: ✭ 145 (+0%)
Mutual labels:  compiler
Swc
swc is a super-fast compiler written in rust; producing widely-supported javascript from modern standards and typescript.
Stars: ✭ 18,627 (+12746.21%)
Mutual labels:  compiler
Parse Sdk Android
The Android SDK for the Parse Platform
Stars: ✭ 1,806 (+1145.52%)
Mutual labels:  parse
Dirty Json
A parser for invalid JSON
Stars: ✭ 141 (-2.76%)
Mutual labels:  parse
Daw json link
Static JSON parsing in C++
Stars: ✭ 146 (+0.69%)
Mutual labels:  parse
Parjs
JavaScript parser-combinator library
Stars: ✭ 145 (+0%)
Mutual labels:  parse
Glsl
GLSL parser for Rust
Stars: ✭ 145 (+0%)
Mutual labels:  compiler
Babygo
Go compiler made from scratch, which can compile itself. It's going to be the smallest and simplest go compiler in the world.
Stars: ✭ 143 (-1.38%)
Mutual labels:  compiler
Assemblyscript
A TypeScript-like language for WebAssembly.
Stars: ✭ 13,152 (+8970.34%)
Mutual labels:  compiler
Lawvere
A categorical programming language with effects
Stars: ✭ 142 (-2.07%)
Mutual labels:  compiler
Libnmea
Lightweight C library for parsing NMEA 0183 sentences
Stars: ✭ 146 (+0.69%)
Mutual labels:  parse
Ice40 Playground
Various iCE40 cores / projects to play around with (mostly targeted at the icebreaker)
Stars: ✭ 141 (-2.76%)
Mutual labels:  verilog
Genieparser
sub-component of Genie that parse the device output into structured datastructure
Stars: ✭ 146 (+0.69%)
Mutual labels:  parse
Tasmocompiler
Web GUI for custom Tasmota compilation
Stars: ✭ 143 (-1.38%)
Mutual labels:  compiler
Beef
Beef Programming Language
Stars: ✭ 1,877 (+1194.48%)
Mutual labels:  compiler
Ispc
Intel SPMD Program Compiler
Stars: ✭ 1,924 (+1226.9%)
Mutual labels:  compiler

slang - SystemVerilog Language Services

codecov License: MIT Join the chat at https://gitter.im/MikePopoloski/slang

slang is a software library that provides various components for lexing, parsing, type checking, and elaborating SystemVerilog code. It comes with an executable tool that can compile and lint any SystemVerilog project, but it is also intended to be usable as a front end for synthesis tools, simulators, linters, code editors, and refactoring tools.

Full documentation is available on the website: https://sv-lang.com

Features

  • Fully parse, analyze, and elaborate all SystemVerilog features - see this page for current status.
  • 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 broken because the user is still writing it.
  • 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.

Getting Started

You can download prebuilt binaries for Windows and Linux for the latest release or the nightly pre-release from the GitHub releases page. You can run the included tool on your code right out of the box; check out the user manual for more information about how it works.

If you're looking to use slang as a library, please read through the developer guide.

Instructions on building slang from source are here.

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.

Contact & Support

If you encounter a bug, have questions, or want to contribute, please get in touch by opening a GitHub issue or posting a message on Gitter.

Contributions are welcome, whether they be in the form of bug reports, comments, suggestions, documentation improvements, or full fledged new features via pull requests.

License

slang is licensed under the MIT license:

Copyright (c) 2015-2021 Michael Popoloski

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].