# Crafting Interpreters, chapter 5

> Week 3 of the cracked.guide path: Ch 5: Representing Code; LeetCode: 2 NeetCode 150 problems.

Week 3 of 145 on cracked.guide, in Crafting Interpreters: Crafting Interpreters 5: Representing Code and 2 NeetCode 150 problems. The reading guides budget about 4 hours.

## Key facts {#key-facts}

- [Crafting Interpreters 5: Representing Code](https://cracked.guide/guide/ci-05): You design the syntax tree for expressions: context-free grammars, the expression grammar for Lox, a small Java program that generates the AST classes, and the Visitor pattern for operating on…
- Phase: Crafting Interpreters, weeks 1 to 28.
- Updated October 20, 2026.

## By the end of this week you can {#objectives}

- Explain how context-free grammar rules describe Lox expressions.
- Implement the Visitor pattern to add operations without editing node classes.
- Use the GenerateAst tool to produce the expression tree classes.

## This week's tasks {#tasks}

- [Crafting Interpreters chapter 5, Representing Code](https://cracked.guide/guide/ci-05): about 4 hours
- LeetCode: 2 NeetCode 150 problems

Previous: [Week 2](https://cracked.guide/curriculum/week/2) · Next: [Week 4](https://cracked.guide/curriculum/week/4)

---

Source: https://cracked.guide/curriculum/week/3
cracked.guide: A free, dated 145-week path to getting genuinely cracked at programming.
