Skip to content

DaryaNechaeva/SystemVerilog-parser

Repository files navigation

SystemVerilog Parser

C++ parser for SystemVerilog files using ANTLR4. Checks syntax and reports errors.

Quick Start

git clone --recurse-submodules https://github.com/DaryaNechaeva/SystemVerilog-parser.git
cd SystemVerilog-parser

mkdir build && cd build
cmake .. && make

./sv-parser design.sv

Usage

# Single file
./sv-parser file.sv

# Multiple files
./sv-parser *.sv

# Output examples:
# PASS: design.sv
# FAIL: test.sv (2 errors)
# ERROR: missing.sv (cannot open)

Project Structure

SystemVerilog-parser/
├── src/lib/main.cpp          # Main code
├── generated/                # ANTLR4 parser files
├── antlr4/                   # ANTLR4 runtime (submodule)
├── CMakeLists.txt           # Build config
└── README.md

Build

mkdir build
cd build
cmake ..
make

License

Note: Independent project, not affiliated with The ANTLR Project.

About

SystemVerilog parser generated with ANTLR4 (C++)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors