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

def yapps::runtime::Scanner::stack_input (   self,
  input = "",
  file = None,
  filename = None 
)

Temporarily parse from a second file.

Definition at line 126 of file runtime.py.

00126                                                                :
            """Temporarily parse from a second file."""

            # Already reading from somewhere else: Go on top of that, please.
            if self.stack:
                  # autogenerate a recursion-level-identifying filename
                  if not filename:
                        filename = 1
                  else:
                        try:
                              filename += 1
                        except TypeError:
                              pass
                        # now pass off to the include file
                  self.stack.stack_input(input,file,filename)
            else:

                  try:
                        filename += 0
                  except TypeError:
                        pass
                  else:
                        filename = "<str_%d>" % filename

#                 self.stack = object.__new__(self.__class__)
#                 Scanner.__init__(self.stack,self.patterns,self.ignore,input,file,filename, stacked=True)

                  # Note that the pattern+ignore are added by the generated
                  # scanner code
                  self.stack = self.__class__(input,file,filename, stacked=True)

      def get_pos(self):


Generated by  Doxygen 1.6.0   Back to index