正在加载图片...
Syntax constants scalars abstractions(functions) " self-evaluating”) ambda(x)(什x1) 42. hello, world function calls 3.1415,#,# (+(succ x)4) (define X 32) “ special forms”( keyword…) variable references (if ( x max)x max),(set! X 44) t X sept.8.2003 16.41016.413 Intro. to scheme Read-Eval-Print Visible world (+3(*45) READ repres EVAL Applies rules Value of ey Execution world PRINT sept.8,2003 16.41016.413 Intro. to scheme 3Syntax constants / scalars abstractions (functions) (“self-evaluating”) (lambda (x) (+ x 1) 42, “hello, world”, function calls 3.1415, #t, #f (+ x 4) definitions (define succ (lambda (x) (+ x )) (+ (succ x) 4) (define x 32) “special forms” (keyword …) variable references (if (> x max) x max), (set! x 44) x (let ((x 5)) (+ x 3)), etc. Sept. 8, 2003 16.410/16.413 Intro. to Scheme 5 / 6 Read-Eval-Print Execution world (+ 3 (* 4 5)) PRINT 23 EVAL Applies rules READ Sept. 8, 2003 16.410 16.413 Intro. to Scheme Visible world Internal representation for expression Visible world Value of expression 3
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有