Example #1
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()
    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()
Example #3
0
    def compiled_token(self,i,restrict=0):
	try:
	    return StarScan.token(i)
        except IndexError:
	    raise NoMoreTokens()