![]() ![]() The evaluator defines syntax of Lisp forms that are built from s-expressions. Implementation of the semantics of the language in terms of these objects by an evaluator program. ![]() If you would like to run the same program as a compiled code, then create a LISP source code file named myprog. Let us write an s-expression to find the sum of three numbers 7, 9 and To do this, we can type at the interpreter prompt. It reads the program code, evaluates it, and prints the values returned by the program. ![]() The interpreter checks the source code in a repeated loop, which is also called the read-evaluate-print loop REPL. The s-expressions are composed of three valid objects, atoms, lists and strings. LISP expressions are called symbolic expressions or s-expressions. ![]()
0 Comments
Leave a Reply. |