git @ Cat's Eye Technologies ZOWIE / 3608ab5
Something like this; not sure what it doesn't like. Chris Pressey 7 years ago
1 changed file(s) with 7 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
380380
381381
382382 def rpython_input():
383 return 0
383 import os
384 s = os.read(1, 1)
385 if not s:
386 return 0
387 return ord(s)
384388
385389 def rpython_output(code):
386 print "&#%d;" % code
390 import os
391 os.write(0, unichr(code).encode('utf-8'))
387392
388393
389394 def rpython_main(argv):