ssm-lang / Scoria

This is an embedding of the Sparse Synchronous Model, in Haskell!
BSD 3-Clause "New" or "Revised" License
4 stars 0 forks source link

Make core syntax more fine grained #72

Open Rewbert opened 2 years ago

Rewbert commented 2 years ago

To enable us to do better statical analysis of the code base further down the road, I think we should make the core statements more fine-grained. As much as possible should be explicit.

If we apply the last two changes we can e.g write an optimization pass which translates

While c
  Code1
  Sensitize a
  Yield
  Desensitize a
  Code2

into

Sensitize a
While c
  Code1
  Yield
  Code2
Desensitize a

This should be a separate issue, but just for some motivation. This issue only concerns making the core syntax more fine-grained.