From 9d0459cb75a37202d4595f0f6e4fb5517749b4ae Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Wed, 19 Mar 2008 15:58:34 +0000 Subject: [PATCH] Added a ListLiteral item to the AST --- data/AST.hs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/AST.hs b/data/AST.hs index 34b8384..dde44e9 100644 --- a/data/AST.hs +++ b/data/AST.hs @@ -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)