Another new command, and it’s short enough to share the whole code:
#@cli rep_python_insert_integer_value:
#@cli : Allows user to insert integer values from the cli interface. Then, return the integer value.
rep_python_insert_integer_value:
exec 1,"python -c \"import sys; sys.exit(int(input('\\n[gmic][python]-"$^"./ Input Integer Value: ')))\""
You can easily guess how this works. But, this is all I can do with mixing two languages without resorting to socket.
D:\Programs\G'MIC\gmic-community>gmic rep_python_insert_integer_value echo the_output_is_${}
[gmic]-0./ Start G'MIC interpreter (v.3.2.7).
[gmic][python]-0./ Input Integer Value: 175601
the_output_is_175601
[gmic]-0./ End G'MIC interpreter.
Which brings me to brainfuck interpreter I did. I only did this because there’s no equilavent of std::cin in G’MIC. Here - Brainfuck Code interpreter written in G'MIC
Also, realized that there’s a limitation that dependent on OS.