|
webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Classes | |
| class | MacroDefinition |
Public Member Functions | |
| def | __init__ (self, a_file=None) |
| def | ParseInput (self, a_file) |
| def | ParseLines (self, input_lines) |
| def | Expand (self, macro_ref_str) |
Hold a set of macros and can resolve/expand them.
| def pddm.MacroCollection.__init__ | ( | self, | |
a_file = None |
|||
| ) |
Initializes the collection. Args: a_file: The file like stream to parse. Raises: PDDMError if there are any issues.
| def pddm.MacroCollection.Expand | ( | self, | |
| macro_ref_str | |||
| ) |
Expands the macro reference. Args: macro_ref_str: String of a macro reference (i.e. foo(a, b)). Returns: The text from the expansion. Raises: PDDMError if there are any issues.
| def pddm.MacroCollection.ParseInput | ( | self, | |
| a_file | |||
| ) |
Consumes input extracting definitions. Args: a_file: The file like stream to parse. Raises: PDDMError if there are any issues.
| def pddm.MacroCollection.ParseLines | ( | self, | |
| input_lines | |||
| ) |
Parses list of lines.
Args:
input_lines: A list of strings of input to parse (no newlines on the
strings).
Raises:
PDDMError if there are any issues.
1.8.13