commodate up to 32 bit flags for tracking state.
    <a href="#lexer.line_from_position"><code>lexer.line_from_position()</code></a> will return the line for any position given
    to an <code>lpeg.P</code> function pattern. (Any positions derived from that position
    argument will also work.)</p>

    <p>Writing stateful lexers is beyond the scope of this document.</p>

    <p><a id="lexer.Code.Folding"></a></p>

    <h3>Code Folding</h3>

    <p>When reading source code, it is occasionally helpful to te