Added a ListLiteral item to the AST

This commit is contained in:
Neil Brown 2008-03-19 15:58:34 +00:00
parent 722499b05d
commit 9d0459cb75

View File

@ -202,12 +202,17 @@ data Subscript =
deriving (Show, Eq, Typeable, Data)
-- | The representation of a literal.
--
-- Note that ListLiteral is distinct from ArrayLiteral. Array literals can
-- be multi-dimensional whereas list literals are always single-dimension (lists
-- of lists are valid)
data LiteralRepr =
RealLiteral Meta String
| IntLiteral Meta String
| HexLiteral Meta String
| ByteLiteral Meta String
| ArrayLiteral Meta [ArrayElem]
| ListLiteral Meta [Expression]
| RecordLiteral Meta [Expression]
deriving (Show, Eq, Typeable, Data)