The expressions we use in Lisp are known as the s-expressions which are composed of atoms, strings, and lists. An s-expression is itself a valid program.
REPL:
REPL is an acronym for Read Evaluate Print Loop. In the case of an interpreter, the program is read, checked for errors in loops, and the value is returned by the program.
Lisp program can run either on an interpreter or as a compiled code.
Evaluation of the Lisp program involves two steps:
Reader Program translates program text to Lisp objects
Evaluator Program implements language semantics in terms of the objects.
Let us look at the steps of evaluation:
Reader translates program text to s-expression.
The evaluator defines the syntax of the Lisp forms which are built from s-expressions and also determines which s-expressions are Lisp forms.
The evaluator works as a function that takes a valid Lisp form as an argument and evaluates it to a value hence we put the Lisp expression under parenthesis because we send the entire text expression as an argument.
Now to begin writing code in Lisp just create a new file as "name.lisp" and write the mentioned code in it: