|
Language.Python.Version2.Lexer | Portability | ghc | Stability | experimental | Maintainer | bjpop@csse.unimelb.edu.au |
|
|
|
|
|
Description |
Lexical analysis for Python version 2.x programs.
See: http://www.python.org/doc/2.6/reference/lexical_analysis.html.
|
|
Synopsis |
|
|
|
|
Lexical analysis
|
|
|
:: String | The input stream (python source code).
| -> String | The name of the python source (filename or input device).
| -> Either ParseError [Token] | An error or a list of tokens.
| Parse a string into a list of Python Tokens, or return an error.
|
|
|
|
:: String | The input stream (python source code).
| -> String | The name of the python source (filename or input device).
| -> Either ParseError (Token, String) | An error or the next token and the rest of the input after the token.
| 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.
|
|
|
Produced by Haddock version 2.4.2 |