Added a ListLiteral item to the AST
This commit is contained in:
parent
722499b05d
commit
9d0459cb75
|
@ -202,12 +202,17 @@ data Subscript =
|
||||||
deriving (Show, Eq, Typeable, Data)
|
deriving (Show, Eq, Typeable, Data)
|
||||||
|
|
||||||
-- | The representation of a literal.
|
-- | 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 =
|
data LiteralRepr =
|
||||||
RealLiteral Meta String
|
RealLiteral Meta String
|
||||||
| IntLiteral Meta String
|
| IntLiteral Meta String
|
||||||
| HexLiteral Meta String
|
| HexLiteral Meta String
|
||||||
| ByteLiteral Meta String
|
| ByteLiteral Meta String
|
||||||
| ArrayLiteral Meta [ArrayElem]
|
| ArrayLiteral Meta [ArrayElem]
|
||||||
|
| ListLiteral Meta [Expression]
|
||||||
| RecordLiteral Meta [Expression]
|
| RecordLiteral Meta [Expression]
|
||||||
deriving (Show, Eq, Typeable, Data)
|
deriving (Show, Eq, Typeable, Data)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user