I just downloaded Ready Lisp and I am playing with REPL. I want to know how to write a long program, interpret it and get the result? It looks like a PLT circuit.
I would like to do this with as little hassle as possible. I just want to chat with the book I'm reading. Thank.
General Lisp provides LOAD and COMPILE FILE functions .
LOAD will load the text source code or compiled Lisp files and execute them. Any print made goes to normal output streams.
COMPILE-FILE Lisp. , , , , . . , COMPILE-FILE, LOAD.
, Common Lisp Lisp . PLT- , . , .
(example.lisp), , C-c C-c C-c C-k .
example.lisp
C-c C-c
C-c C-k
" " , . , defun. REPL .
defun
, :
(defun square (n) (* n n))
, , C-c C-c, REPL :
CL-USER> (square 3) 9 CL-USER>
Source: https://habr.com/ru/post/1768555/More articles:PHP: Facebook / Twitter integration - phpListView Losing Selection before running Drag - wpfWhat physical Android device are you using for testing purposes? - androidAlternatives to SQL Server Express beyond 2 GB - databaseHow to change control property from flowlayoutpanel? - c #How to Optimize Lucene.Net Indexing - luceneMakeSfxCA.exe and DLL compiled with Framework 4.0 - .netphp_excel07- how to replicate properties of one row to the next row - phpNetbeans IDE 6.91 "центр по горизонтали" не доступен для кликов - javaHow to check if a given type is a static class? - c #All Articles