guess I'm done with re-org
This commit is contained in:
parent
4e33d595cc
commit
3082f3409f
6 changed files with 126 additions and 109 deletions
24
src/RTLILParser/AST.hs
Normal file
24
src/RTLILParser/AST.hs
Normal file
|
@ -0,0 +1,24 @@
|
|||
module RTLILParser.AST(
|
||||
PublicId(..),
|
||||
AutogenId(..),
|
||||
AutoIdxStmt(..),
|
||||
Id(..),
|
||||
Value(..)
|
||||
) where
|
||||
import Text.Read (Lexeme(Ident))
|
||||
|
||||
data PublicId = PublicId String deriving (Show)
|
||||
data AutogenId = AutogenId String deriving (Show)
|
||||
data Id = Public PublicId
|
||||
| Autogen AutogenId
|
||||
deriving (Show)
|
||||
data AutoIdxStmt = AutoIdxStmt Int deriving (Show)
|
||||
data Value = Value
|
||||
{ width :: Int
|
||||
, value :: Int
|
||||
}
|
||||
deriving (Show)
|
||||
data Constant = ConstantValue Value
|
||||
| ConstantInteger Int
|
||||
| ConstantString String
|
||||
deriving (Show)
|
Loading…
Add table
Add a link
Reference in a new issue