GuildOfWeavers / distaff

Zero-knowledge virtual machine written in Rust
MIT License
244 stars 44 forks source link

Add support for unbounded loops #29

Closed bobbinth closed 4 years ago

bobbinth commented 4 years ago

Adding unbounded loops will require refactoring of program representation as described here. Syntax for unbounded loops could look like so:

while.true
   a_0 . . . a_n
end

where:

Loop body will be executed until the top of the stack is not 0.