コード例 #1
0
ファイル: yappsrt.py プロジェクト: BackupTheBerlios/pycifrw
    def compiled_token(self,i,restrict=0):
	"""Get the i'th token, and if i is one past the end, then scan 
	for another token; restrict is a list of tokens that
	are allowed, or 0 for any token."""
	try:
	    return StarScan.token(i)
	except IndexError:
	    raise NoMoreTokens()
コード例 #2
0
    def compiled_token(self,i,restrict=0):
	"""Get the i'th token, and if i is one past the end, then scan 
	for another token; restrict is a list of tokens that
	are allowed, or 0 for any token."""
	try:
	    return StarScan.token(i)
	except IndexError:
	    raise NoMoreTokens()
コード例 #3
0
    def compiled_token(self,i,restrict=0):
	try:
	    return StarScan.token(i)
        except IndexError:
	    raise NoMoreTokens()