ssm-lang / sslang

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

Support time-related primitives #166

Open j-hui opened 1 year ago

j-hui commented 1 year ago

We should be able to query the current time and time a scheduled variable was last-updated. In fact, ssm-runtime already supports this, and codegen even has bindings for it. I tried hacking this in with 072fb9aa20796a7ac1243b19eee5e9d675ea3c41 (for now and last, whose syntax is prefix @@) and 152d9943365ce8bdee2e58eb2a0370bd53005c29 (adding in Time as an alias for U64).

But there are several problems, leading me to remove these features from the scanner in 11752b86f064484304a84c6943d1eb448b0423c1: