示例#1
0
 def __unicode__(s):
     return unicodeJoin(u" ", s.nodes)
示例#2
0
	def __unicode__(s):
		return u"[%s %s [%s]]" % ("New" if s.isInstance else "Inherit", unicode(s.base), unicodeJoin(u", ", s.values))
示例#3
0
 def __unicode__(s):
     return u"(%s)" % (unicodeJoin(u", ", s.statements))
示例#4
0
	def __unicode__(s):
		return u"[Array %s]" % (unicodeJoin(u", ", s.contents))
示例#5
0
	def __unicode__(s):
		return u"[Apply %s]" % (unicodeJoin(u" ", [s.f, s.arg]))
示例#6
0
	def __unicode__(s):
		result = u"[Match"
		for match in s.matches:
			result += " [Case %s [%s] %s]" % (unicode(match.targetExe), unicodeJoin(", ", match.unpacks), unicode(match.statement))
		result += "]"
		return result
示例#7
0
	def __unicode__(s):
		return u"[%s %s]" % ("While" if s.loop else "If",
			unicodeJoin(u" ", [s.condClause, s.ifClause] + ([s.elseClause] if s.elseClause else [])))
示例#8
0
	def __unicode__(s):
		tags = (["Scoped"] if s.hasScope else []) + (["Returning"] if s.shouldReturn else [])
		return u"[Sequence%s %s]" % (("(%s)"%u", ".join(tags)) if tags else "", unicodeJoin(u" ", s.execs))