- Introduction
- The description
- 1. Overview
- 2. Definitions
- 3. Before tokenising
- 4. Tokenising
- 4.1. Pretokens
- 4.2. Pretokenising
- 4.2.1. Common definitions
- 4.2.2. Whitespace and comment pretokens
- 4.2.3. String and byte literal pretokens
- 4.2.4. Numeric literal pretokens
- 4.2.5. Identifier pretokens
- 4.2.6. Punctuation pretokens
- 4.3. Fine-grained tokens
- 4.4. Reprocessing
- 4.4.1. Escape processing
- 4.4.2. List of reprocessing cases
- Appendices
- 5. Parsing Expression Grammar notation
- 6. Complete pretokenisation grammar
- Discussion
- 7. Rationale for this model
- 8. Grammar for raw string literals
- 9. Open questions
- 10. Rustc oddities