4 A First Taste of Desugaring
We’ve begun with a very spartan arithmetic language. Let’s look at how we might extend it with more arithmetic operations that can nevertheless be expressed in terms of existing ones. We’ll add just two, because these will suffice to illustrate the point.
4 A First Taste of Desugaring ▼ Programming Languages: Application and Interpretation 1 Introduction 2 Everything (We Will Say) About Parsing 3 A First Look at Interpretation 4 A First Taste of Desugaring 5 Adding Functions to the Language 6 From Substitution to Environments 7 Functions Anywhere 8 Mutation: Structures and Variables 9 Recursion and Cycles: Procedures and Data 10 Objects 11 Memory Management 12 Representation Decisions 13 Desugaring as a Language Feature 14 Control Operations 15 Checking Program Invariants Statically: Types 16 Checking Program Invariants Dynamically: Contr
saved by
related reading
- Parsing Expressions · Crafting Interpreterscraftinginterpreters.com
- Introduction · Crafting Interpreterscraftinginterpreters.com
- Destroy All Values: Designing Deinitialization in Programming Languages - Faultloregankra.github.io
- Structure and Interpretation of Computer Programsmitp-content-server.mit.edu
- Reading 19: Little Languagesweb.mit.edu
- Laurence Tratt: Which Parsing Approach?tratt.net
- Structure and Interpretation of Computer Programsmitp-content-server.mit.edu
- Structure and Interpretation of Computer Programsmitp-content-server.mit.edu
- Structure and Interpretation of Computer Programsmitp-content-server.mit.edu
- Structure and Interpretation of Computer Programsmitp-content-server.mit.edu
- Adrian Sampson: Flattening ASTs (and Other Compiler Data Structures)cs.cornell.edu
- Writing a C compiler in 500 lines of Pythonvgel.me