language-python-0.2: Parsing and pretty printing of Python code.Source codeContentsIndex
Language.Python.Version3.Lexer
Portabilityghc
Stabilityexperimental
Maintainerbjpop@csse.unimelb.edu.au
Contents
Lexical analysis
Description
Lexical analysis for Python version 3.x programs. See: http://www.python.org/doc/3.1/reference/lexical_analysis.html.
Synopsis
lex :: String -> String -> Either ParseError [Token]
lexOneToken :: String -> String -> Either ParseError (Token, String)
Lexical analysis
lexSource
:: StringThe input stream (python source code).
-> StringThe 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.
lexOneTokenSource
:: StringThe input stream (python source code).
-> StringThe 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