titus.inspector.parser.Parser

class titus.inspector.parser.Parser[source]

Bases: object

Parser for the “ply” package, specialized for pfainspector command lines.

Includes both the tokenizer and the parser.

__init__()
parse(text)

Parse the given text, returning an abstract syntax tree.

Parameters:text (string) – command line to parse
Return type:titus.inspector.parser.Ast
Returns:parsed text as an abstract syntax tree