Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between a REPL and an interpreter?

Is there any technical difference between a REPL and an interpreter?

like image 789
Kurt Avatar asked Aug 06 '10 14:08

Kurt


People also ask

What is REPL interpreter?

REPL stands for Read, Evaluate, Print, Loop. The REPL is how you interact with the Python Interpreter. Unlike running a file containing Python code, in the REPL you can type commands and instantly see the output printed out.

What is a REPL in Python?

REPL stands for Read Evaluate Print Loop, and is the name given to the interactive MicroPython prompt that is accessible on the Pycom devices. Using the REPL is by far the easiest way to test out Python code and run commands. You can use the REPL in addition to writing scripts in main.py .

What is REPL it used for?

WHAT IS REPL.IT? Repl.it is a free IDE (integrated development environment) that allows users to write their own programs and code in dozens of different languages.

What is a Python interpreter?

The Python interpreter is a virtual machine, meaning that it is software that emulates a physical computer. This particular virtual machine is a stack machine: it manipulates several stacks to perform its operations (as contrasted with a register machine, which writes to and reads from particular memory locations).


1 Answers

Interactive interpreters use REPLs. An interpreter is not required to have one. You can run Python, for example, in non-interactive mode (on a file) and it will not use a read-eval-print loop.

like image 124
nmichaels Avatar answered Sep 28 '22 01:09

nmichaels