# Crafting Interpreters, chapter 16

> Week 14 of the cracked.guide path: Ch 16: Scanning on Demand; LeetCode: 2 NeetCode 150 problems.

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

## Key facts {#key-facts}

- [Crafting Interpreters 16: Scanning on Demand](https://cracked.guide/guide/ci-16): A new scanner for clox that produces tokens on demand instead of all at once, pointing into the source string rather than copying lexemes, with a hand-written trie-like switch for keywords.
- Phase: Crafting Interpreters, weeks 1 to 28.
- Updated October 20, 2026.

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

- Explain why clox scans tokens on demand instead of all at once.
- Implement tokens as a pointer into the source plus a length.
- Use a trie-shaped switch to recognize keywords.

## This week's tasks {#tasks}

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

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

---

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