www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Interactive Interpreter

reply Jiyan <jiyan jiyan.info> writes:
Is there any work for an interactive interpreter for D -maybe 
just for ctfe-able expressions?
It shouldnt be too hard to implement it regarding the fact, that 
ctfe is kinda doing what
an interpreter should do i guess.
Feb 05
parent reply Stefan Koch <uplink.coder googlemail.com> writes:
On Monday, 5 February 2018 at 19:54:09 UTC, Jiyan wrote:
 Is there any work for an interactive interpreter for D -maybe 
 just for ctfe-able expressions?
 It shouldnt be too hard to implement it regarding the fact, 
 that ctfe is kinda doing what
 an interpreter should do i guess.
There is https://github.com/dlang-community/drepl which should give you what you want. As the person who builds newCTFE I can tell you that it is rather tricky :)
Feb 05
parent Jiyan <jiyan jiyan.info> writes:
On Tuesday, 6 February 2018 at 01:23:57 UTC, Stefan Koch wrote:
 On Monday, 5 February 2018 at 19:54:09 UTC, Jiyan wrote:
 Is there any work for an interactive interpreter for D -maybe 
 just for ctfe-able expressions?
 It shouldnt be too hard to implement it regarding the fact, 
 that ctfe is kinda doing what
 an interpreter should do i guess.
There is https://github.com/dlang-community/drepl which should give you what you want. As the person who builds newCTFE I can tell you that it is rather tricky :)
Thank you very much :)
Feb 06