Questions tagged [read-eval-print-loop]

The Read-Eval-Print Loop (REPL) is widely recognized as the predominant framework for an interactive interpreter. This model involves reading input, evaluating it, printing it, and then looping back to start the process again.

When attempting to use the node.js REPL over a socket, the connection will unexpectedly terminate if the user presses CTRL + C

As I attempt to utilize REPL over a socket in a manner similar to a telnet connection, I have encountered an issue whereby pressing CTRL + C or CTRL + D, or encountering an error result in the socket connection becoming unresponsive. The code written in n ...

Encountering an error with the node module timestampnotes: 'command not recognized'

I am encountering an issue while trying to utilize a npm package called timestamp notes. After executing the following commands: $npm install timestampnotes $timestamp I receive the error message: timestamp:126: command not found: slk Subsequently, I ...

Is it feasible to bring in a Typescript file into an active ts-node REPL session?

I want to experiment with some Typescript code that I have written. Currently, I usually run ts-node my-file-name.ts to test it out. But I am interested in making this process more interactive, similar to the Python REPL where you can import modules and ...

How can I obtain a standard Python REPL through JetBrains?

I'm currently working on a project to simplify a classic drinking song using Python, but I'm encountering some odd behavior from the interpreter. My code looks like this: def lines(): bottles = 99 while bottles > 0: yield str ...

Evaluating code in Node.js REPL

Currently, I am working on integrating an evaluation feature into a Node.JS REPL. However, when trying to execute it, I encountered the following error: TypeError: Property 'eval' of object #<REPLServer> is not a function. Below is the exce ...

What is the best way to understand the signature of a custom evaluation function in nodejs repl

Help needed! Can someone explain the meaning of each parameter in the custom evaluation function? I searched for documentation but couldn't find a clear explanation. // could you clarify the purpose of "cmd", "context", "filename", and "callback"? fu ...