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

def runtime::Parser::_scan (   self,
  type 
) [private]

Returns the matched text, and moves to the next token

Definition at line 199 of file runtime.py.

00199                          :
        """Returns the matched text, and moves to the next token"""
        tok = self._scanner.token(self._pos, [type])
        if tok[2] != type:
            raise SyntaxError(tok[0], 'Trying to find '+type+' :'+ ' ,'.join(self._scanner.restrictions[self._pos]))
        self._pos = 1 + self._pos
        return tok[3]

class Context:


Generated by  Doxygen 1.6.0   Back to index