Read-Eval-Print Loop


The following program is a skeleton for a read-eval-print loop, or REPL. A REPL is common program pattern: the program displays a prompt, reads in input, processes the input, and then repeats. For processing, the skeleton program simply echoes the text that the user input.

repl.c