lisp - Allegro CL, Debugging functions step by step -


this question has answer here:

i trying understand how function works in lisp, used allegro cl quite time ago, , remember had special function in repl, let see how function worked step step, in matlab. example, if had function:

(+ 1    (* 2 3       (/ 6 2)     )  ) 

you see each function step step, like:

(+ 1    (* 2 3       3) ) 

and then:

(+ 1    18) 

and finally:

19 

many in advance.

thanks jkiiski,

the code showing step step function be:

(step (+ 1 (* 2 3 (/ 6 2)))) 

and shows in detail how lisp parses data , evaluates function.

after many steps gives:

[step] cg-user(2):     result 6: 2   6: (/ 6 2) [step] cg-user(2):      result 5: 18    result 4: 18   result 3: 18  result 2: 18 2: (+ 1 18) [step] cg-user(2):   result 2: 19 result 1: 19 

Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -