Skip to content

foshardware/firrtl

Repository files navigation

FIRRTL parser

Parses Flexible Intermediate Representation for RTL (FIRRTL) into an Abstract Syntax Tree (AST). Intended for use with LibreSilicon Compiler (lsc).

Usage

import Data.Text

import Language.FIRRTL.Lexer
import Language.FIRRTL.Parser
import Language.FIRRTL.Syntax


newtype FIR = FIR Circuit
  deriving (Eq, Show)

parseFIR :: Text -> Either ParseError FIR
parseFIR = fmap FIR . circuit . lexer []

About

A FIR parser for Haskell.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published