I had asked about building a custom interpreter using root in this post .
I was pointed to this cling-demo as a possible solution.
I downloaded and built cling and built the cling-demo. However, what it does is not what I am looking for. The cling-demo is an executable that uses the interpreter functionality but cannot interpret a script file that is passed to it as an argument.
I am trying to build an ‘enhanced’ interpreter that integrates additional proprietary functionality into cling which can then be used to interpret a source file which does not need to be compiled.
I’m starting this new thread to see if I can explain better and build what I need using Cling (or Root).
I hope that someone familiar with both Cint and Cling/Root can tell me if what I am looking for is possible in Cling/Root (and how). Cint worked great for us and we wouldn’t be looking for another solution had support for Cint not ceased for recent releases of linux.
To reiterate, I just need an augmented C++ interpreter which can also execute some other proprietary instrumentation functions that I have.
More given below with a very trivial code example.
Thank you.
_ROOT Version: v6.26.10
_Platform: Ubuntu 22.04
_Compiler: g++ 11.3.0