Standard Module panelparser

panelparser

This module defines a self-contained parser for S-expressions as output by the Panel Editor (which is written in Scheme so it can't help writing S-expressions). The relevant function is panelparser.parse_file(file) which has a file object (not a filename!) as argument and returns a list of parsed S-expressions. Each S-expression is converted into a Python list, with atoms converted to Python strings and sub-expressions (recursively) to Python lists. For more details, read the module file.