For questions and topics related to programming statements and programming syntax. This relates to any sequence of characters, used to indicate where the end of the statement appears in the context of parsing, or lexical analysis, of source code files.
Overview
In computer science, lexical analysis, lexing or tokenization is the process of converting a sequence of characters (such as in a computer program or web page) into a sequence of tokens (strings with an assigned and thus identified meaning).
Line continuation
Line continuation is an element of lexical analysis.
It is a feature of some languages where a newline is normally a statement terminator.
Most often, ending a line with a backslash (immediately followed by a newline) results in the line being continued – the following line is joined to the prior line. This is generally done in the lexer: the backslash and newline are discarded, rather than the newline being tokenized. Examples include bash,[8] other shell scripts and Python.[9]