/usr/share/doc/libghc-language-python-doc/html/Language-Python-Version3-Lexer.html is in libghc-language-python-doc 0.5.4-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Language.Python.Version3.Lexer</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Language-Python-Version3-Lexer.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Language-Python-Version3-Lexer.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">language-python-0.5.4: Parsing and pretty printing of Python code.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>(c) 2009 Bernie Pope </td></tr><tr><th>License</th><td>BSD-style</td></tr><tr><th>Maintainer</th><td>bjpop@csse.unimelb.edu.au</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Portability</th><td>ghc</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Language.Python.Version3.Lexer</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Lexical analysis</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Lexical analysis for Python version 3.x programs.
See: <a href="http://www.python.org/doc/3.1/reference/lexical_analysis.html">http://www.python.org/doc/3.1/reference/lexical_analysis.html</a>.</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:lex">lex</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="Language-Python-Common-ParseError.html#t:ParseError">ParseError</a> [<a href="Language-Python-Common-Token.html#t:Token">Token</a>]</li><li class="src short"><a href="#v:lexOneToken">lexOneToken</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="Language-Python-Common-ParseError.html#t:ParseError">ParseError</a> (<a href="Language-Python-Common-Token.html#t:Token">Token</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>)</li><li class="src short"><a href="#v:lexer">lexer</a> :: <a href="Language-Python-Common-ParserMonad.html#t:P">P</a> [<a href="Language-Python-Common-Token.html#t:Token">Token</a>]</li><li class="src short"><a href="#v:initLexState">initLexState</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="Language-Python-Common-ParserMonad.html#t:ParseState">ParseState</a></li></ul></div><div id="interface"><h1 id="g:1">Lexical analysis</h1><div class="top"><p class="src"><a id="v:lex" class="def">lex</a> <a href="src/Language-Python-Version3-Lexer.html#lex" class="link">Source</a> <a href="#v:lex" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>The input stream (python source code). </p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>The name of the python source (filename or input device).</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="Language-Python-Common-ParseError.html#t:ParseError">ParseError</a> [<a href="Language-Python-Common-Token.html#t:Token">Token</a>]</td><td class="doc"><p>An error or a list of tokens.</p></td></tr></table></div><div class="doc"><p>Parse a string into a list of Python Tokens, or return an error. </p></div></div><div class="top"><p class="src"><a id="v:lexOneToken" class="def">lexOneToken</a> <a href="src/Language-Python-Version3-Lexer.html#lexOneToken" class="link">Source</a> <a href="#v:lexOneToken" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>The input stream (python source code).</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>The name of the python source (filename or input device).</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="Language-Python-Common-ParseError.html#t:ParseError">ParseError</a> (<a href="Language-Python-Common-Token.html#t:Token">Token</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a>)</td><td class="doc"><p>An error or the next token and the rest of the input after the token. </p></td></tr></table></div><div class="doc"><p>Try to lex the first token in an input string. Return either a parse error
or a pair containing the next token and the rest of the input after the token.</p></div></div><div class="top"><p class="src"><a id="v:lexer" class="def">lexer</a> :: <a href="Language-Python-Common-ParserMonad.html#t:P">P</a> [<a href="Language-Python-Common-Token.html#t:Token">Token</a>] <a href="src/Language-Python-Version3-Lexer.html#lexer" class="link">Source</a> <a href="#v:lexer" class="selflink">#</a></p><div class="doc"><p>Lex a sequence of tokens.</p></div></div><div class="top"><p class="src"><a id="v:initLexState" class="def">initLexState</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -> <a href="Language-Python-Common-ParserMonad.html#t:ParseState">ParseState</a> <a href="src/Language-Python-Version3-Lexer.html#initLexState" class="link">Source</a> <a href="#v:initLexState" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.2</p></div></body></html>
|