Skip to content

Commit f7141b5

Browse files
committed
Go over Chapter 12
1 parent 748d81e commit f7141b5

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

12_language.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ We use plain JavaScript function values to represent Egg's function values. We w
237237

238238
{{index readability, "evaluate function", recursion, parsing}}
239239

240-
The recursive structure of `evaluate` resembles the similar structure of the parser, and both mirror the structure of the language itself. It would also be possible to integrate the parser with the evaluator and evaluate during parsing, but splitting them up this way makes the program clearer.
240+
The recursive structure of `evaluate` resembles the similar structure of the parser, and both mirror the structure of the language itself. It would also be possible to combinge the parser and the evaluator into one function, and evaluate during parsing. But splitting them up this way makes the program clearer and more flexible.
241241

242242
{{index "Egg language", interpretation}}
243243

html/css/ejs.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,8 @@ figure img {
407407
max-width: 100%;
408408
}
409409

410-
details.solution {
411-
color: #156;
412-
}
413-
410+
details.solution { color: #156 }
411+
details summary { cursor: pointer }
414412
details[open] summary { display: none }
415413

416414
td {

0 commit comments

Comments
 (0)