Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
38
rated 0 times [  45] [ 7]  / answers: 1 / hits: 19730  / 12 Years ago, wed, november 28, 2012, 12:00:00

I saw a reference to creating a REPL. What is a REPL?



var arDrone = require('ar-drone');
var client = arDrone.createClient();
client.createRepl();

More From » node.js

 Answers
16

Good information in the tag right here on Stack Overflow:



About read-eval-print-loop


A Read-Eval-Print Loop (REPL) is an interactive interpreter to a programming language. It originated with LISP systems, but many other languages (Python, Ruby, Haskell, Tcl, etc.) use REPL's to manage interactive sessions. They allow for simple experimentation with a language by bypassing the compile stage of the "code -> compile -> execute" cycle.


There are 4 components to a REPL (named in LISP notation):



  • A read function, which reads input from the keyboard

  • An eval function, which evaluates code passed to it

  • A print function, which formats and displays results

  • A loop function, which runs the three previous commands until termination



[#81757] Monday, November 26, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lara

Total Points: 462
Total Questions: 100
Total Answers: 102

Location: Jersey
Member since Mon, Jun 14, 2021
3 Years ago
lara questions
;