class Parser:
Undocumented
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | add_library |
Undocumented |
Method | compile_filter |
Convenient wrapper for FilterExpression |
Method | delete_first_token |
Undocumented |
Method | error |
No summary |
Method | extend_nodelist |
Undocumented |
Method | find_filter |
Undocumented |
Method | invalid_block_tag |
Undocumented |
Method | next_token |
Undocumented |
Method | parse |
Iterate through the parser tokens and compiles each one into a node. |
Method | prepend_token |
Undocumented |
Method | skip_past |
Undocumented |
Method | unclosed_block_tag |
Undocumented |
Instance Variable | command_stack |
Undocumented |
Instance Variable | filters |
Undocumented |
Instance Variable | libraries |
Undocumented |
Instance Variable | origin |
Undocumented |
Instance Variable | tags |
Undocumented |
Instance Variable | tokens |
Undocumented |
Iterate through the parser tokens and compiles each one into a node.
If parse_until is provided, parsing will stop once one of the specified tokens has been reached. This is formatted as a list of tokens, e.g. ['elif', 'else', 'endif']. If no matching token is reached, raise an exception with the unclosed block tag details.