Allow a directed channel array to be sliced.
This lets you write things like "[cs! FOR 5]", which is horrible; I would prefer "[cs FOR 5]!", since then that doesn't imply that you can do things like "cs![0] ! 0". However, Tock now compiles and passes cgtest87 -- the first occam-pi cgtest we've handled. :)
This commit is contained in:
parent
62a0873d3d
commit
638a3f3c22
|
@ -843,7 +843,7 @@ channel
|
||||||
channel' :: OccParser A.Variable
|
channel' :: OccParser A.Variable
|
||||||
channel'
|
channel'
|
||||||
= do { m <- md; n <- try channelName; return $ A.Variable m n }
|
= do { m <- md; n <- try channelName; return $ A.Variable m n }
|
||||||
<|> maybeSliced channel A.SubscriptedVariable
|
<|> maybeSliced directedChannel A.SubscriptedVariable
|
||||||
<?> "channel'"
|
<?> "channel'"
|
||||||
|
|
||||||
direction :: OccParser A.Direction
|
direction :: OccParser A.Direction
|
||||||
|
|
Loading…
Reference in New Issue
Block a user