# Crafting Interpreters, chapter 4

> Week 2 of the cracked.guide path: Ch 4: Scanning; LeetCode: 2 NeetCode 150 problems.

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

## Key facts {#key-facts}

- [Crafting Interpreters 4: Scanning](https://cracked.guide/guide/ci-04): You build the scanner for jlox: turning source text into a list of tokens, handling lexemes, literals, keywords and identifiers, line numbers for errors, and the first bits of error reporting.
- Phase: Crafting Interpreters, weeks 1 to 28.
- Updated October 20, 2026.

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

- Implement a scanner that turns Lox source text into a list of tokens.
- Explain the difference between a lexeme and a token.
- Trace the start and current indices while scanning a multi-character lexeme.

## This week's tasks {#tasks}

- [Crafting Interpreters chapter 4, Scanning](https://cracked.guide/guide/ci-04): about 6 hours
- LeetCode: 2 NeetCode 150 problems

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

---

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