Logo Search packages:      
Sourcecode: yapps2 version File versions  Download package

def yapps::runtime::Context::__init__ (   self,
  parent,
  scanner,
  rule,
  args = () 
)

Create a new context.

Args:
parent: Context object or None
scanner: Scanner object
rule: string (name of the rule)
args: tuple listing parameters to the rule

Definition at line 385 of file runtime.py.

00385                                                         :
            """Create a new context.

            Args:
            parent: Context object or None
            scanner: Scanner object
            rule: string (name of the rule)
            args: tuple listing parameters to the rule

            """
            self.parent = parent
            self.scanner = scanner
            self.rule = rule
            self.args = args
            while scanner.stack: scanner = scanner.stack
            self.token = scanner.last_read_token

      def __str__(self):


Generated by  Doxygen 1.6.0   Back to index