Lines Matching refs:writeln
89 def writeln(self, line):
93 self.writeln('# ' + comment)
96 self.writeln("")
101 self.writeln("def binary : 1 (x y) y;")
104 self.writeln("extern putchard(x);")
105 self.writeln("extern printd(d);")
106 self.writeln("extern printlf();")
109 self.writeln("def printresult(N Result)")
110 self.writeln(" # 'result('")
111 self.writeln(" putchard(114) : putchard(101) : putchard(115) : putchard(117) : putchard(108) : putchard(116) : putchard(40) :")
112 self.writeln(" printd(N) :");
113 self.writeln(" # ') = '")
114 self.writeln(" putchard(41) : putchard(32) : putchard(61) : putchard(32) :")
115 self.writeln(" printd(Result) :");
116 self.writeln(" printlf();")
124 self.writeln(" %s = func%d(%s, %s) :" % (LValue, funcToCall, LHS, RHS))
131 self.writeln(" if %s < %s then" % (LHS, RHS))
132 self.writeln(" %s = %s %s %s" % (LValue, LHS, operation, RHS))
133 self.writeln(" else if %s < %s then" % (RHS, LHS))
134 self.writeln(" %s = %s %s %s" % (LValue, LHS, operation, RHS))
135 self.writeln(" else")
136 self.writeln(" %s = %s %s %f :" % (LValue, LHS, operation, random.uniform(1, 100)))
138 self.writeln(" %s = %s %s %s :" % (LValue, LHS, operation, RHS))
149 self.writeln("def func%d(X Y)" % funcNum)
150 self.writeln(" var temp1 = X,")
151 self.writeln(" temp2 = Y,")
152 self.writeln(" temp3 in")
165 self.writeln(" " + third + ";")
172 self.writeln("printresult(%d, func%d(%f, %f) )" % (self.lastFuncNum, self.lastFuncNum, arg1, arg2))