verismith-1.1.0: Random verilog generation and simulator testing.
Copyright(c) 2019-2022 Yann Herklotz
LicenseGPL-3
Maintaineryann [at] yannherklotz [dot] com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Verismith.Verilog.Parser

Description

Minimal Verilog parser to reconstruct the AST. This parser does not support the whole Verilog syntax, as the AST does not support it either.

Synopsis

Parser

parseVerilog Source #

Arguments

:: Text

Name of parsed object.

-> Text

Content to be parsed.

-> Either Text (Verilog ann)

Returns String with error message if parse fails.

Parse a String containing verilog code. The parser currently only supports the subset of Verilog that is being generated randomly.

Internal parsers

type Parser = Parsec [Token] () Source #