verismith-0.4.0.0: Random verilog generation and simulator testing.

Copyright(c) 2011-2015 Tom Hawkins 2019 Yann Herklotz
LicenseGPL-3
Maintaineryann [at] yannherklotz [dot] com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe
LanguageHaskell2010

Verismith.Verilog.Preprocess

Description

Simple preprocessor for `define and comments.

The code is from https://github.com/tomahawkins/verilog.

Edits to the original code are warning fixes and formatting changes.

Synopsis

Documentation

uncomment :: FilePath -> String -> String Source #

Remove comments from code. There is no difference between (* *) and * *, therefore in this implementation, */ could close (* and vice-versa, This will be fixed in an upcoming version.

preprocess :: [(String, String)] -> FilePath -> String -> String Source #

A simple `define preprocessor.