Lists, tuples, dictionaries, floats, integers, strings, and comments are recognized. Triple quoted strings are not recognized. Long integers and complex numbers are not recognized. Numbers are returned as integers if possible. All sequences are returned as lists.
Commas separating items are optional.
The LParser.parse method takes an optional parameter specifices parsing start mode. If it is LParser. In this case all input may not be read. The value None is returned for end of file. On a parse error, an LParserError exception is raised.