miden-vm icon indicating copy to clipboard operation
miden-vm copied to clipboard

Add support for procedures on the REPL

Open hackaugusto opened this issue 2 years ago • 2 comments

Feature request

At the moment, trying to specify a procedure on the REPL results in the following error:

>> proc.test.0 push.1 end
Error running program: AssemblyError(ParsingError("unexpected body termination: invalid token 'proc.test.0'"))

Supporting procedures can be useful if one has routines written down and want to use for some interactive testing.

hackaugusto avatar Jan 13 '23 12:01 hackaugusto

Yep - that would be a nice feature. We excluded this from the initial version to simplify things. One question was whether we want to limit procedures to single line (and in that case their usefulness may be limited) or if not, what's the best way to handle multi-line input.

bobbinth avatar Jan 13 '23 16:01 bobbinth

IMO we should support multi-line input, so that one can copy and paste the procedure from a file.

hackaugusto avatar Jan 13 '23 16:01 hackaugusto