class documentation
class Parser: (source)
Undocumented
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | add |
Undocumented |
Method | compile |
Convenient wrapper for FilterExpression |
Method | delete |
Undocumented |
Method | error |
Return an exception annotated with the originating token. Since the parser can be called recursively, check if a token is already set. This ensures the innermost token is highlighted if an exception occurs, e... |
Method | extend |
Undocumented |
Method | find |
Undocumented |
Method | invalid |
Undocumented |
Method | next |
Undocumented |
Method | parse |
Iterate through the parser tokens and compiles each one into a node. |
Method | prepend |
Undocumented |
Method | skip |
Undocumented |
Method | unclosed |
Undocumented |
Instance Variable | command |
Undocumented |
Instance Variable | filters |
Undocumented |
Instance Variable | libraries |
Undocumented |
Instance Variable | origin |
Undocumented |
Instance Variable | tags |
Undocumented |
Instance Variable | tokens |
Undocumented |
Return an exception annotated with the originating token. Since the parser can be called recursively, check if a token is already set. This ensures the innermost token is highlighted if an exception occurs, e.g. a compile error within the body of an if statement.
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.