(self, s)
interpret the iterable s, yield Quad, Edge or Object named tuples.
interpret the iterable s, yield Quad, Edge or Object named tuples.
interpret the iterable s yield Quad Edge or Object named tuples .
def interpret(self, s):
		"""
		interpret the iterable s, yield Quad, Edge or Object named tuples.
		"""
		print('interpret:',s)
		name=''
		for c in s:
			t = None
			print(c,name)
			if c == '}':
				t = self.term_object(name=name[1:])
				name=''
			elif c == '{' or name != '':
				name += c
				continue
			elif name != '':
				continue
			elif c in self.terminals:
				t = self.terminals[c]()
			print('yield',t)
			if not t is None:
				yield t
def interpret ( self , s ) : print ( 'interpret:' , s ) name = '' for c in s : t = None print ( c , name ) if c == '}' : t = self . term_object ( name = name [ 1 : ] ) name = '' elif c == '{' or name != '' : name += c continue elif name != '' : continue elif c in self . terminals : t = self . terminals [ c ] ( ) print ( 'yield' , t ) if not t is None : yield t