Skip to content

foshardware/verilog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Verilog parser

Parses Verilog text into an Abstract Syntax Tree (AST). Intended for use with LibreSilicon Compiler (lsc).

Usage

import Data.Text

import Language.Verilog.AST
import Language.Verilog.Parser

newtype Verilog = Verilog { modules :: [Module] }
  deriving (Eq, Show)

parseVerilog :: Text -> Verilog
parseVerilog = Verilog . parseFile [] ""

About

A Verilog parser for Haskell.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 55.7%
  • Yacc 27.2%
  • Logos 17.1%