Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Lexical Structure

Lexical analysis (“lexing”) is the process of converting a stream of characters in a source file into stream of tokens.

whitespace and comments serve only to separate tokens within the input stream and have no semantic significance.

Source encoding

Before lexing can occur, a source file is decoded as a sequence of Unicode characters encoded in UTF-8.