美文网首页
3. Expressions

3. Expressions

作者: 钉子_Tintin | 来源:发表于2016-05-11 14:10 被阅读0次

3.1 Specification and Implementation Strategy

goal:
program text > [Front End] > syntax tree > [Interpreter] > answer

Interpreter is a program that looks at a data structure and performs some actions that depend on its structure.

3.2 LET: A Simple Language

3.2.1 Specifying the Syntax

3.2.2 Specification of Values

3.2.3 Environments

3.2.4 Specifying the Behavior of Expressions

3.2.5 Specifying the Behavior of Programs

3.2.6 Specifying Conditionals

3.2.7 Specifying let

3.2.8 Implementing the Specification of LET

3.3 PROC: A Language with Procedures

3.3.1 An Example

3.3.2 Representing Procedures

3.4 LETREC: A Language with Recursive Procedures

3.5 Scoping and Binding of Variables

变量会出现在两个地方:reference(引用)和declaration(定义)。变量被bound(绑定)到它的值上。

定义变量是有一个作用域限制的,不同的作用域可以使用同一个变量表示不同的值。作用域规则说明引用是如何指定到定义上去的。

3.6 Eliminating Variable Names

3.7 Implementing Lexical Addressing

3.7.1 The Translator

3.7.2 The Nameless Interpreter

相关文章

  • 3. Expressions

    3.1 Specification and Implementation Strategy goal:progra...

  • Expressions

    一直以来我们使用 Ruby的表达式时都表现得十分傲慢。毕竟,a=b+c是标准事物。你完全可以不阅读本章也可以完成大...

  • 关于狗的词汇表达

    Expressions about Dogs Americans use many expressions wit...

  • Useful expressions

    An idle youth,a needy age.少壮不努力,老大徒伤悲。 ​A rotten apple 害群...

  • The expressions of birds

    今天学习了一些关于birds的短语,想起高中教了我三年的英语老师。很多句子他都教过,这么多年了,还是记得很清晰,...

  • Regular Expressions

    1,regex类,设置匹配模式pattern2,regex_match,regex_search匹...

  • Let Expressions

    Let Expressions Let表达式是一个非常重要的特性,可以以非常简单、通用、灵活的方式创建并使用局部变...

  • Regular expressions

    Regular expressions Example phone number: 1[0-9] grep -E ...

  • Mouth Expressions

    Mouth Expressions Now, the *** Special English program WO...

  • mapbox expressions

网友评论

      本文标题:3. Expressions

      本文链接:https://www.haomeiwen.com/subject/knuyrttx.html