assert_equal_type macro in testing
assert_equal_type macro in testing
CLOSED: [2018-10-11 Do 17:15]
CLOSED: [2018-09-18 Di 12:14]
CLOSED: [2018-09-18 Di 12:14]
CLOSED: [2018-09-18 Di 12:14]
CLOSED: [2018-09-18 Di 12:14]
CLOSED: [2018-09-18 Di 12:14]
CLOSED: [2018-10-05 Fr 22:21]
CLOSED: [2018-10-05 Fr 22:21]
CLOSED: [2018-10-05 Fr 22:21]
(not 1) ;; == (not . (1 . nil)) (not (expression 1 3)) ;; == (not . ((expression . (1 . (3 . nil))) . nil)) (not) ;; == (not . nil) (not 1 2) ;; == (not . (1 . (2 . nil)))
t
CLOSED: [2018-10-08 Mo 20:28]
CLOSED: [2018-10-08 Mo 20:28]
CLOSED: [2018-10-08 Mo 20:28]
CLOSED: [2018-10-08 Mo 20:28]
CLOSED: [2018-10-08 Mo 20:28]
(setq condition (quote (= a 10))) (setq a 10) (eval condition) (setq a 11) (eval condition)
CLOSED: [2018-10-08 Mo 20:28]
CLOSED: [2018-10-08 Mo 21:06]
(quote (cons 2 (cons 3 (cons 4 ())))) ;; (cons 2 (cons 3 (cons 4 nil))) (quote (2 . (3 . (4 . ())))) ;; (2 3 4)
(list (cons 2 (cons 3 (cons 4 ())))) ;; ((2 3 4)) (list (quote(2 . (3 . (4 . ())))))
CLOSED: [2018-10-08 Mo 20:28]
CLOSED: [2018-10-08 Mo 20:28]
CLOSED: [2018-10-08 Mo 21:30]
Symbol
Number
String
pair (cons-cell)
lambda function lambda
built-in function
Parse to AST
Start with namespace only containing the built-ins
every AST node has its own namespace, inherting the one from its parent (pointer / references) because when a function sets a variable within an upper namespace it should infact change the environment even if the function exited
(progn (setq x 4)(* x 2))