Python content parser
Type (or just copy&paste) Python code in the box below to parse its contents.
The result will be a JSON object containing all the nodes in the given code. It is also
possible the make POST request directly to this address and give the code in POST parameters code
and mode.
The result will contain the leaf nodes of this ontology.
The ontology is based on the nodes available in Python's AST.
The following parsing modes are available:
- simple: Output contains all the lines and nodes that are present on that line
- complex: Output contains all the lines and nodes that are present on that line and if it is a block structure also the end line number is given
- hierarchical: Output contains all the nodes and their start and end line numbers as a hierarchical structure
- concepts: Output all the concepts (different AST nodes) that are present in the given code