Code: Select all
newLISP v.8.8.0 on Win32 MinGW, execute 'newlisp -h' for more info.
> (setq num 2147483646)
2147483646
> (+ num 5)
-2147483645
> (inc 'num 5)
2147483651
>
Code: Select all
newLISP v.8.8.0 on Win32 MinGW, execute 'newlisp -h' for more info.
> (setq num 2147483646)
2147483646
> (+ num 5)
-2147483645
> (inc 'num 5)
2147483651
>
Code: Select all
(define (cwd) (first (exec (if (= (& 0xF (last (sys-info))) 6) "cd" "pwd"))))
Code: Select all
# by Alex version 2005.02.08
(define (no-comments src) (rest (chop (string (eval-string (append "'(" src ")"))))))
Code: Select all
(print "\n\n\n\n\n")
(exit)
Code: Select all
newlisp test.lsp > test.txt
Code: Select all
(context 'BLA-BLA-BLA)
..............
(context 'MAIN)
Code: Select all
(context 'BLA-BLA-BLA
....................
)
it first translates the code and creates a 'x' symbol in the current context ctx.
Code: Select all
> (context 'ctx)
ctx
ctx> (symbol? x) #symbol 'x' creates
nil
ctx> (symbols) #Yes, symbol 'x' exists
(x)
ctx> (symbol? x) #No, we have no symbol 'x' !?
nil
ctx>