guess I'm done with re-org

This commit is contained in:
Yehowshua Immanuel 2024-11-25 18:42:03 -05:00
parent 4e33d595cc
commit 3082f3409f
6 changed files with 126 additions and 109 deletions

24
src/RTLILParser/AST.hs Normal file
View 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)