#separator:tab
#html:true
#notetype:Basic
#tags column:3
#deck:cracked.guide::Crafting Interpreters::Ch 03 The Lox Language
#columns:Front	Back	Tags
Crafting Interpreters ch 3, The Lox Language: what does it cover?	An informal tour of Lox: dynamic typing, automatic memory management, the data types, expressions, statements, variables, control flow, functions, closures, classes and inheritance.	cracked.guide cracked.guide::phase::interpreters cracked.guide::chapter::03 cracked.guide::kind::about
Crafting Interpreters ch 3, The Lox Language: why does it matter?	You need to know the target language before you implement it. Lox is small but has real closures and classes, so it exercises the hard parts.	cracked.guide cracked.guide::phase::interpreters cracked.guide::chapter::03 cracked.guide::kind::why
Crafting Interpreters ch 3, The Lox Language: which part of the book is it in?	Welcome	cracked.guide cracked.guide::phase::interpreters cracked.guide::chapter::03 cracked.guide::kind::part
Lox: what is it?	Lox is a small, dynamically typed scripting language designed by Robert Nystrom for the book Crafting Interpreters, implemented twice in it: as jlox and as clox.	cracked.guide cracked.guide::phase::interpreters cracked.guide::chapter::03 cracked.guide::kind::definition
Lox: Is Lox used in production?	No. It is a teaching language. Its value is that you can understand and build every part of it.	cracked.guide cracked.guide::phase::interpreters cracked.guide::chapter::03 cracked.guide::kind::definition
Lox: Where is the Lox language described?	Chapter 3 of Crafting Interpreters, &quot;The Lox Language&quot;, free at craftinginterpreters.com.	cracked.guide cracked.guide::phase::interpreters cracked.guide::chapter::03 cracked.guide::kind::definition
Crafting Interpreters ch 3, a common trap: “Assuming Lox behaves like JavaScript or Python in edge cases.” What's the catch?	Check the chapter.	cracked.guide cracked.guide::phase::interpreters cracked.guide::chapter::03 cracked.guide::kind::trap
Crafting Interpreters ch 3: which end-of-chapter challenges are worth your time?	Challenge 1 (write and run sample programs) is good to do once you have an interpreter. Keep your answer to challenge 3 (features you would add) in a notes file: chapter 13 asks you to implement one of them.	cracked.guide cracked.guide::phase::interpreters cracked.guide::chapter::03 cracked.guide::kind::challenges
Crafting Interpreters ch 3, The Lox Language: how should you work through it?	Read it, then write a few Lox programs in a text file now (you can run them later with your own interpreter, or try the reference build from the repo). Keep a list of questions about the semantics; the book answers most of them later.	cracked.guide cracked.guide::phase::interpreters cracked.guide::chapter::03 cracked.guide::kind::approach
