dimitriv / Ziria

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

How to declare a function local to another function? #55

Closed bradunov closed 9 years ago

bradunov commented 9 years ago

I would like to declare a function that is visible only within another function in the expression language. It seems that this is not possible as I get unexpected "reserved word "fun"" message. Would it make sense to make it possible, and scope the function only inside? Note that a local function can be declared within a computer in the computational language, so seems a bit incosistent.

edsko commented 9 years ago

Closely related to #33.

edsko commented 9 years ago

Closed as duplicate of #33.