dimitriv / Ziria

A domain-specific-language and compiler for low-level bitstream processing.
92 stars 18 forks source link

One-off initialization code #31

Open bradunov opened 9 years ago

bradunov commented 9 years ago

Introduce one-off initialization code (something like static in C). For example: let comp test() = once{ dadada }; rest; in repeat{test()}

should execute dadada only once, preferably at the init stage before even starting reading the stream. Keyword once is just the first thought, any suggestion is more than welcome.