ssm-lang / sslang

A language built atop the Sparse Synchronous Model
BSD 3-Clause "New" or "Revised" License
18 stars 0 forks source link

Add desugar stubs for strings and lists #124

Closed EmilySillars closed 1 year ago

EmilySillars commented 1 year ago

This PR adds two stubbed-out passes to the front end of the compiler, 1) desugarStrings // meant to change LitString --> ListExpr 2) desugarLists // meant to change ListExpr --> App

for @as0501 and @max-acebal to work on respectively.

j-hui commented 1 year ago

LGTM; do you want to also add LitLists to this PR while you’re at it?

EmilySillars commented 1 year ago

LGTM; do you want to also add LitLists to this PR while you’re at it?

Ah, for some reason I thought we had to merge all of Max's stuff to get a List AST node added, but now I realize that isn't necessary - I've added a List node to the AST as part of this PR now. If it looks okay to you, I will go ahead and merge.