webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Member Functions | List of all members
pddm.MacroCollection Class Reference
Inheritance diagram for pddm.MacroCollection:

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)
 

Detailed Description

Hold a set of macros and can resolve/expand them.

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ Expand()

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.

◆ ParseInput()

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.

◆ ParseLines()

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.

The documentation for this class was generated from the following file: