Data types used in SAL and XLISP:
|
SAL | XLISP | ||||
|
1 |
1 |
||||
|
1.0 |
1.0 |
||||
|
"hello" |
"hello" |
||||
|
name |
name |
||||
|
symbol: |
:symbol |
||||
|
{item-1 item-2 ...} |
(item-1 item-2 ...) |
||||
|
array[index] |
(aref array index) |
||||
|
#t |
#f |
t |
nil |
Data types with different concepts:
SAL:
XLISP:
A function to print the Lisp code, produced by the SAL compiler, to the screen:
(defun test (string) (if (not (stringp string)) (error "not a string" string) (pprint (third (second (sal-compile string nil nil "<console>"))))))