Igs
Programs from roupi
interactive greyscript repl (Read-eval-print loop)

IGS

tool to quickly test some greyscript code without having to open an editor and compiling and then running it, if you have used ruby's IRB or python repl its similar.
Capture d’écran du 2022-12-14 20-14-45.png 7.28 KB

it does let you continue to eval after an error
image.png 17.9 KB

and after a compilation error without loosing state
Capture d’écran du 2022-12-14 20-17-05.png 10 KB

META

the interface igs uses under the hood, it has functions like eval to run arbitrary code passed as a string
Capture d’écran du 2022-12-14 20-20-18.png 51.8 KB


and console function if you have an error in your program and would like to debug it before the code crashes.
image.png 55.7 KB

WARNING ________________
if you call Meta.console inside a function you will discover that you wont have access to the local variables
image.png 58.9 KB

to fix it i added an hack, you just need to pass your locals as a parameter to .console or .eval and then all the locals will be accessible inside the child script with a "M" prefix, like this :
image.png 47.1 KB


REFERENCE


if you want to use this as a lib you can copy the static/meta.src to your project and to use the igs tool just compile the igs.src
Files
Builds
igs_0.1.5
Download build

Post's comments

post does not have comments.

You need to log in to write a comment.